]> granicus.if.org Git - php/commitdiff
Revert "Fix macro redefinition warnings"
authorAnatol Belski <ab@php.net>
Thu, 30 Nov 2017 12:21:04 +0000 (13:21 +0100)
committerAnatol Belski <ab@php.net>
Thu, 30 Nov 2017 12:21:04 +0000 (13:21 +0100)
This reverts commit 23d2bd374838897ec97f9994e70856686a89f132.

Zend/zend_config.w32.h
sapi/apache2handler/config.w32

index a1b3714979de386d89fce158f7daca0222745b27..2ba42cdc9d7bc3afbbb525f9e00d35bc71def5d4 100644 (file)
@@ -50,12 +50,8 @@ typedef unsigned int uint;
 #if _MSC_VER < 1900
 #define snprintf _snprintf
 #endif
-#ifndef HAVE_STRCASECMP
 #define strcasecmp(s1, s2) _stricmp(s1, s2)
-#endif
-#ifndef HAVE_STRNCASECMP
 #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
-#endif
 #define zend_isinf(a)  ((_fpclass(a) == _FPCLASS_PINF) || (_fpclass(a) == _FPCLASS_NINF))
 #define zend_finite(x) _finite(x)
 #define zend_isnan(x)  _isnan(x)
index 13f146fed86008ec3c7f4fd0e4880e6b1a2ae7c5..8ea1305d4fca94682aabe75d2b10d5418cfa3740 100644 (file)
@@ -51,7 +51,6 @@ if (PHP_APACHE2_4HANDLER != "no") {
                                'php' + PHP_VERSION + 'apache2_4.dll',
                                '/D PHP_APACHE2_EXPORTS /I win32 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1',
                                'sapi\\apache2handler');
-               ADD_FLAG("CFLAGS_APACHE2_4HANDLER", "/D HAVE_STRCASECMP=1 /D HAVE_STRNCASECMP=1");
        } else {
                WARNING("Could not find apache 2.4 libraries/headers");
        }