Skip to content

Commit d5a3838

Browse files
committed
fix min supported versions
1 parent 4899109 commit d5a3838

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

win32/build/config.w32.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
/* Define the minimum supported version */
77
#undef _WIN32_WINNT
88
#undef NTDDI_VERSION
9-
#define _WIN32_WINNT 0x0600
10-
#define NTDDI_VERSION 0x06000100
9+
#define _WIN32_WINNT 0x0601
10+
#define NTDDI_VERSION 0x06010000
1111

1212
/* Default PHP / PEAR directories */
1313
#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot")?getenv("SystemRoot"):"")

win32/build/confutils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var PHP_TEST_INI_PATH = "";
4444
var PHP_TEST_INI = "";
4545
var PHP_TEST_INI_EXT_EXCLUDE = "";
4646

47+
/* Care also about NTDDI_VERSION and _WIN32_WINNT in config.w32.h.in */
4748
var WINVER = "0x0601"; /* 7/2008r2 */
4849

4950
// There's a minimum requirement for re2c..
@@ -3027,7 +3028,7 @@ function toolset_setup_common_cflags()
30273028
{
30283029
// CFLAGS for building the PHP dll
30293030
DEFINE("CFLAGS_PHP", "/D _USRDLL /D PHP7DLLTS_EXPORTS /D PHP_EXPORTS \
3030-
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D _WIN32_WINNT=" + WINVER);
3031+
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=" + WINVER);
30313032

30323033
DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
30333034

0 commit comments

Comments
 (0)