diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-05-01 15:29:37 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-05-01 20:25:21 +0300 |
commit | 5cbe9553b88d806cfc0a89c727937f0a49e07f30 (patch) | |
tree | 99a8af92bc0687da372bcba59836ed93e5c242bd /w32 | |
parent | 747802ec8f8d9d0329c9dd37168c1d2003812b6e (diff) | |
download | libmicrohttpd-5cbe9553b88d806cfc0a89c727937f0a49e07f30.tar.gz libmicrohttpd-5cbe9553b88d806cfc0a89c727937f0a49e07f30.zip |
W32 VS projects: fixed: define 'WIN32' only on x32 platforms
Diffstat (limited to 'w32')
-rw-r--r-- | w32/common/common-build-settings.vcxproj | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/w32/common/common-build-settings.vcxproj b/w32/common/common-build-settings.vcxproj index 41b8f64a..5eacd023 100644 --- a/w32/common/common-build-settings.vcxproj +++ b/w32/common/common-build-settings.vcxproj | |||
@@ -5,6 +5,8 @@ | |||
5 | Only 0 and 1 are used currently --> | 5 | Only 0 and 1 are used currently --> |
6 | <TargetOSLevel Condition="$(PlatformToolset.EndsWith('_xp'))">0</TargetOSLevel> | 6 | <TargetOSLevel Condition="$(PlatformToolset.EndsWith('_xp'))">0</TargetOSLevel> |
7 | <TargetOSLevel Condition="! $(PlatformToolset.EndsWith('_xp'))">1</TargetOSLevel> | 7 | <TargetOSLevel Condition="! $(PlatformToolset.EndsWith('_xp'))">1</TargetOSLevel> |
8 | <MhdNumBits Condition="$(Platform.EndsWith('64'))">64</MhdNumBits> | ||
9 | <MhdNumBits Condition="! $(Platform.EndsWith('64'))">32</MhdNumBits> | ||
8 | </PropertyGroup> | 10 | </PropertyGroup> |
9 | <PropertyGroup> | 11 | <PropertyGroup> |
10 | <IncludePath>$(SolutionDir);$(MhdW32Common);$(MhdSrc)include;$(IncludePath)</IncludePath> | 12 | <IncludePath>$(SolutionDir);$(MhdW32Common);$(MhdSrc)include;$(IncludePath)</IncludePath> |
@@ -25,7 +27,7 @@ | |||
25 | <WarningLevel Condition="'%(ClCompile.ExternalWarningLevel)' != ''">EnableAllWarnings</WarningLevel> | 27 | <WarningLevel Condition="'%(ClCompile.ExternalWarningLevel)' != ''">EnableAllWarnings</WarningLevel> |
26 | <WarningLevel Condition="'%(ClCompile.ExternalWarningLevel)' == ''">Level4</WarningLevel> | 28 | <WarningLevel Condition="'%(ClCompile.ExternalWarningLevel)' == ''">Level4</WarningLevel> |
27 | <ExternalWarningLevel>Level3</ExternalWarningLevel> | 29 | <ExternalWarningLevel>Level3</ExternalWarningLevel> |
28 | <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 30 | <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
29 | <DisableSpecificWarnings>4996;4820;4127;5045</DisableSpecificWarnings> | 31 | <DisableSpecificWarnings>4996;4820;4127;5045</DisableSpecificWarnings> |
30 | <TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors> | 32 | <TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors> |
31 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> | 33 | <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> |
@@ -36,6 +38,11 @@ | |||
36 | <GenerateDebugInformation>true</GenerateDebugInformation> | 38 | <GenerateDebugInformation>true</GenerateDebugInformation> |
37 | </Link> | 39 | </Link> |
38 | </ItemDefinitionGroup> | 40 | </ItemDefinitionGroup> |
41 | <ItemDefinitionGroup Condition="'$(MhdNumBits)' == '32'"> | ||
42 | <ClCompile> | ||
43 | <PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
44 | </ClCompile> | ||
45 | </ItemDefinitionGroup> | ||
39 | <ItemDefinitionGroup Condition="'$(TargetOSLevel)'>'0'"> | 46 | <ItemDefinitionGroup Condition="'$(TargetOSLevel)'>'0'"> |
40 | <ClCompile> | 47 | <ClCompile> |
41 | <PreprocessorDefinitions>_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 48 | <PreprocessorDefinitions>_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions> |