Skip to content

Commit 18b6a70

Browse files
committed
Set baseline to 0x601 (Windows 7)
1 parent 98150fc commit 18b6a70

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/include/gen/autoconfig_msvc.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#ifndef AUTOCONFIG_H
22
#define AUTOCONFIG_H
33

4-
// Windows 10 (0x0A00) is the baseline version for Firebird 6
5-
#define FB_WIN32_WINNT_BASELINE 0x0A00
4+
// Windows 7 (0x0601) is the baseline version for Firebird 6.
5+
// NOTE: This does not mean that this version is supported, but that we want to limit Windows API
6+
// use to this version.
7+
#define FB_WIN32_WINNT_BASELINE 0x0601
68

79
#ifndef _WIN32_WINNT
8-
// By default set _WIN32_WINNT to the baseline, but allows overriding (maybe for fbclient?)
10+
// Set _WIN32_WINNT to the baseline, but allow overriding
911
#define _WIN32_WINNT FB_WIN32_WINNT_BASELINE
10-
#elif (_WIN32_WINNT < 0x0601)
11-
// Consider Windows versions before Windows 7 (0x0601) really too old. This does not mean that
12-
// compilation for versions before Windows 10 will succeed (probably it will work for fbclient).
12+
#elif (_WIN32_WINNT < FB_WIN32_WINNT_BASELINE)
13+
// Consider Windows versions before the baseline really too old.
1314
#error The target Windows version (_WIN32_WINNT) is too old
1415
#endif
1516

0 commit comments

Comments
 (0)