@@ -30,9 +30,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
3030  # PHP has nice() emulation implemented on Windows. 
3131  set (HAVE_NICE TRUE )
3232
33-   # PHP defines strcasecmp in Zend/zend_config.w32.h. 
34-   set (HAVE_STRCASECMP TRUE )
35- 
3633  # PHP has syslog.h emulation implemented on Windows. 
3734  set (HAVE_SYSLOG_H TRUE )
3835
@@ -48,6 +45,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4845  # PHP has socketpair() emulation implemented on Windows. 
4946  set (PHP_HAS_SOCKETPAIR TRUE )
5047
48+   # PHP defines strcasecmp in Zend/zend_config.w32.h. 
49+   set (PHP_HAVE_STRCASECMP TRUE )
50+ 
5151  ############################################################################## 
5252  # To speed up the Windows build experience where configuration phase takes 
5353  # much longer compared to POSIX-based environments, the following are always 
@@ -139,7 +139,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
139139  set (HAVE_STD_SYSLOG FALSE )
140140  set (HAVE_STDDEF_H TRUE ) # Defined by check_type_size(). 
141141  set (HAVE_STDINT_H TRUE ) # Defined by check_type_size(). 
142-   set (HAVE_STRINGS_H FALSE )
143142  set (HAVE_STRLCAT FALSE )
144143  set (HAVE_STRLCPY FALSE )
145144  set (HAVE_STRNLEN TRUE )
@@ -265,6 +264,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
265264  set (PHP_HAVE_CREATEPROCESS TRUE )
266265  set (PHP_HAVE_FORK FALSE )
267266  set (PHP_HAVE_GRP_H FALSE )
267+   set (PHP_HAVE_STRINGS_H FALSE )
268268  set (PHP_HAVE_UNISTD_H FALSE )
269269  set (PHP_SAPI_CLI_HAVE_PS_STRINGS FALSE )
270270  set (PHP_SAPI_PHPDBG_HAS_UFFDIO_WRITEPROTECT_MODE_WP FALSE )
0 commit comments