windows: Set _WIN32_WINNT to 0x0601 (Windows 7)

Also remove all defines in many places and define it in configure stage to keep consistency.
This commit is contained in:
Chun Kuan Lee
2018-12-13 18:24:30 +08:00
parent 82cf6813a4
commit 1bd9ffdd44
6 changed files with 2 additions and 18 deletions

View File

@ -17,6 +17,7 @@
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4018;4244;4267;4715;4805;</DisableSpecificWarnings>
<TreatWarningAsError>true</TreatWarningAsError>
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
</Project>