diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-04-11 11:37:38 +0300 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-14 14:45:52 +0200 |
commit | 1f1f8a50be968416b735d0a05242259396762644 (patch) | |
tree | 0c3ed9e1034e0f4c5439eabb8b14bb5c793f0c89 /w32 | |
parent | 8b8c300312dc33a6c9cef232fb8710cb95723772 (diff) | |
download | libmicrohttpd-1f1f8a50be968416b735d0a05242259396762644.tar.gz libmicrohttpd-1f1f8a50be968416b735d0a05242259396762644.zip |
VC builds: fix asserts and release builds
Diffstat (limited to 'w32')
-rw-r--r-- | w32/common/MHD_config.h | 3 | ||||
-rw-r--r-- | w32/common/common-build-settings.vcxproj | 2 | ||||
-rw-r--r-- | w32/common/libmicrohttpd-files.vcxproj | 1 | ||||
-rw-r--r-- | w32/common/libmicrohttpd-filters.vcxproj | 3 |
4 files changed, 9 insertions, 0 deletions
diff --git a/w32/common/MHD_config.h b/w32/common/MHD_config.h index 191a6cf9..89b750a3 100644 --- a/w32/common/MHD_config.h +++ b/w32/common/MHD_config.h | |||
@@ -75,6 +75,9 @@ | |||
75 | /* Define to 1 if you have the usable `calloc' function. */ | 75 | /* Define to 1 if you have the usable `calloc' function. */ |
76 | #define HAVE_CALLOC 1 | 76 | #define HAVE_CALLOC 1 |
77 | 77 | ||
78 | /* Define if you have usable assert() and assert.h */ | ||
79 | #define HAVE_ASSERT 1 | ||
80 | |||
78 | #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ | 81 | #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ |
79 | /* Define to 1 if you have the `snprintf' function. */ | 82 | /* Define to 1 if you have the `snprintf' function. */ |
80 | #define HAVE_SNPRINTF 1 | 83 | #define HAVE_SNPRINTF 1 |
diff --git a/w32/common/common-build-settings.vcxproj b/w32/common/common-build-settings.vcxproj index 362340c6..6643fe13 100644 --- a/w32/common/common-build-settings.vcxproj +++ b/w32/common/common-build-settings.vcxproj | |||
@@ -74,6 +74,7 @@ | |||
74 | <ClCompile> | 74 | <ClCompile> |
75 | <Optimization>Disabled</Optimization> | 75 | <Optimization>Disabled</Optimization> |
76 | <SmallerTypeCheck>true</SmallerTypeCheck> | 76 | <SmallerTypeCheck>true</SmallerTypeCheck> |
77 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
77 | </ClCompile> | 78 | </ClCompile> |
78 | <ResourceCompile> | 79 | <ResourceCompile> |
79 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 80 | <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
@@ -87,6 +88,7 @@ | |||
87 | <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion> | 88 | <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion> |
88 | <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> | 89 | <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> |
89 | <OmitFramePointers>true</OmitFramePointers> | 90 | <OmitFramePointers>true</OmitFramePointers> |
91 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
90 | </ClCompile> | 92 | </ClCompile> |
91 | <Link> | 93 | <Link> |
92 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | 94 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
diff --git a/w32/common/libmicrohttpd-files.vcxproj b/w32/common/libmicrohttpd-files.vcxproj index 6f1e03bc..3897a943 100644 --- a/w32/common/libmicrohttpd-files.vcxproj +++ b/w32/common/libmicrohttpd-files.vcxproj | |||
@@ -31,6 +31,7 @@ | |||
31 | <ClInclude Include="$(MhdSrc)microhttpd\internal.h" /> | 31 | <ClInclude Include="$(MhdSrc)microhttpd\internal.h" /> |
32 | <ClInclude Include="$(MhdSrc)microhttpd\md5.h" /> | 32 | <ClInclude Include="$(MhdSrc)microhttpd\md5.h" /> |
33 | <ClInclude Include="$(MhdSrc)microhttpd\memorypool.h" /> | 33 | <ClInclude Include="$(MhdSrc)microhttpd\memorypool.h" /> |
34 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_assert.h" /> | ||
34 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_byteorder.h" /> | 35 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_byteorder.h" /> |
35 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h" /> | 36 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h" /> |
36 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_mono_clock.h" /> | 37 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_mono_clock.h" /> |
diff --git a/w32/common/libmicrohttpd-filters.vcxproj b/w32/common/libmicrohttpd-filters.vcxproj index d0c47073..6d1d55ee 100644 --- a/w32/common/libmicrohttpd-filters.vcxproj +++ b/w32/common/libmicrohttpd-filters.vcxproj | |||
@@ -96,6 +96,9 @@ | |||
96 | <ClInclude Include="$(MhdSrc)microhttpd\tsearch.h"> | 96 | <ClInclude Include="$(MhdSrc)microhttpd\tsearch.h"> |
97 | <Filter>Source Files</Filter> | 97 | <Filter>Source Files</Filter> |
98 | </ClInclude> | 98 | </ClInclude> |
99 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_assert.h"> | ||
100 | <Filter>Source Files</Filter> | ||
101 | </ClInclude> | ||
99 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h"> | 102 | <ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h"> |
100 | <Filter>Source Files</Filter> | 103 | <Filter>Source Files</Filter> |
101 | </ClInclude> | 104 | </ClInclude> |