commit 1f1f8a50be968416b735d0a05242259396762644
parent 8b8c300312dc33a6c9cef232fb8710cb95723772
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 11 Apr 2019 11:37:38 +0300
VC builds: fix asserts and release builds
Diffstat:
4 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/w32/common/MHD_config.h b/w32/common/MHD_config.h
@@ -75,6 +75,9 @@
/* Define to 1 if you have the usable `calloc' function. */
#define HAVE_CALLOC 1
+/* Define if you have usable assert() and assert.h */
+#define HAVE_ASSERT 1
+
#if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */
/* Define to 1 if you have the `snprintf' function. */
#define HAVE_SNPRINTF 1
diff --git a/w32/common/common-build-settings.vcxproj b/w32/common/common-build-settings.vcxproj
@@ -74,6 +74,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<SmallerTypeCheck>true</SmallerTypeCheck>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -87,6 +88,7 @@
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
diff --git a/w32/common/libmicrohttpd-files.vcxproj b/w32/common/libmicrohttpd-files.vcxproj
@@ -31,6 +31,7 @@
<ClInclude Include="$(MhdSrc)microhttpd\internal.h" />
<ClInclude Include="$(MhdSrc)microhttpd\md5.h" />
<ClInclude Include="$(MhdSrc)microhttpd\memorypool.h" />
+ <ClInclude Include="$(MhdSrc)microhttpd\mhd_assert.h" />
<ClInclude Include="$(MhdSrc)microhttpd\mhd_byteorder.h" />
<ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h" />
<ClInclude Include="$(MhdSrc)microhttpd\mhd_mono_clock.h" />
diff --git a/w32/common/libmicrohttpd-filters.vcxproj b/w32/common/libmicrohttpd-filters.vcxproj
@@ -96,6 +96,9 @@
<ClInclude Include="$(MhdSrc)microhttpd\tsearch.h">
<Filter>Source Files</Filter>
</ClInclude>
+ <ClInclude Include="$(MhdSrc)microhttpd\mhd_assert.h">
+ <Filter>Source Files</Filter>
+ </ClInclude>
<ClInclude Include="$(MhdSrc)microhttpd\mhd_limits.h">
<Filter>Source Files</Filter>
</ClInclude>