Skip to content

Commit c78c6ad

Browse files
committed
parametrize WINVER and update its value
1 parent b155ba2 commit c78c6ad

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

win32/build/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ DEFINE("BASE_INCLUDES", "/I . /I main /I Zend /I TSRM /I ext ");
7070

7171
// CFLAGS for building the PHP dll
7272
DEFINE("CFLAGS_PHP", "/D _USRDLL /D PHP7DLLTS_EXPORTS /D PHP_EXPORTS \
73-
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=0x500");
73+
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=" + WINVER);
7474

7575
DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
7676

win32/build/config.w32.phpize.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ DEFINE("BASE_INCLUDES", "/I " + PHP_DIR + "/include /I " + PHP_DIR + "/include/m
5555

5656
// CFLAGS for building the PHP dll
5757
DEFINE("CFLAGS_PHP", "/D _USRDLL /D PHP7DLLTS_EXPORTS /D PHP_EXPORTS \
58-
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=0x500");
58+
/D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=" + WINVER);
5959

6060
DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
6161

win32/build/confutils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ var INTELVERS = -1;
3939
var COMPILER_NUMERIC_VERSION = -1;
4040
var COMPILER_NAME = "unknown";
4141

42+
var WINVER = "0x0600"; /* Vista */
43+
4244
// There's a minimum requirement for re2c..
4345
var MINRE2C = "0.13.4";
4446

0 commit comments

Comments
 (0)