From fee52f439712423067e6949f27b52ac88ea69e5f Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 28 Dec 2015 18:30:40 -0800 Subject: [PATCH] dll: use NODEFAULTLIB by default --- build/VStudio/winfsp_dll.vcxproj | 22 ++++++++++++++++++---- src/dll/library.h | 1 + 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/build/VStudio/winfsp_dll.vcxproj b/build/VStudio/winfsp_dll.vcxproj index f020d1aa..7c88bbeb 100644 --- a/build/VStudio/winfsp_dll.vcxproj +++ b/build/VStudio/winfsp_dll.vcxproj @@ -115,9 +115,12 @@ Level3 Disabled WIN32;_DEBUG;_WINDOWS;_USRDLL;WINFSPDLL_EXPORTS;%(PreprocessorDefinitions) - true + + ..\..\src;..\..\inc MultiThreadedDLL + Default + false Windows @@ -125,6 +128,7 @@ $(OutDir)$(TargetFileName).pdb true $(OutDir)$(TargetFileName).map + true @@ -134,9 +138,12 @@ Level3 Disabled _DEBUG;_WINDOWS;_USRDLL;WINFSPDLL_EXPORTS;%(PreprocessorDefinitions) - true + + ..\..\src;..\..\inc MultiThreadedDLL + Default + false Windows @@ -144,6 +151,7 @@ $(OutDir)$(TargetFileName).pdb true $(OutDir)$(TargetFileName).map + true @@ -155,9 +163,11 @@ true true WIN32;NDEBUG;_WINDOWS;_USRDLL;WINFSPDLL_EXPORTS;%(PreprocessorDefinitions) - true + + ..\..\src;..\..\inc MultiThreadedDLL + false Windows @@ -167,6 +177,7 @@ $(OutDir)$(TargetFileName).pdb true $(OutDir)$(TargetFileName).map + true @@ -178,9 +189,11 @@ true true NDEBUG;_WINDOWS;_USRDLL;WINFSPDLL_EXPORTS;%(PreprocessorDefinitions) - true + + ..\..\src;..\..\inc MultiThreadedDLL + false Windows @@ -190,6 +203,7 @@ $(OutDir)$(TargetFileName).pdb true $(OutDir)$(TargetFileName).map + true diff --git a/src/dll/library.h b/src/dll/library.h index bb084683..9b102f7b 100644 --- a/src/dll/library.h +++ b/src/dll/library.h @@ -8,6 +8,7 @@ #define WINFSP_DLL_LIBRARY_H_INCLUDED #define WINFSP_DLL_INTERNAL +#define WINFSP_DLL_NODEFAULTLIB #include #include