Skip to content

Commit 6c78c50

Browse files
committed
Define _WIN32_WINNT in Firebird.Common.props
1 parent f39ddf0 commit 6c78c50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

builds/win32/msvc15/FirebirdCommon.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<CompileAs>Default</CompileAs>
2828
<UseFullPaths>false</UseFullPaths>
2929
<MultiProcessorCompilation>true</MultiProcessorCompilation>
30-
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
30+
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
3131
<TreatSpecificWarningsAsErrors>4715</TreatSpecificWarningsAsErrors>
3232
</ClCompile>
3333
<Link>

src/include/gen/autoconfig_msvc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
// use to this version.
77
#define FB_WIN32_WINNT_BASELINE 0x0601
88

9+
// Normally, _WIN32_WINNT is defined in the PreprocessorDefinitions of Firebird.Common.props.
910
#ifndef _WIN32_WINNT
10-
// Set _WIN32_WINNT to the baseline, but allow overriding
11+
// Fallback to set _WIN32_WINNT to the baseline.
1112
#define _WIN32_WINNT FB_WIN32_WINNT_BASELINE
1213
#elif (_WIN32_WINNT < FB_WIN32_WINNT_BASELINE)
1314
// Consider Windows versions before the baseline really too old.

0 commit comments

Comments
 (0)