Skip to content

Commit

Permalink
Merge branch 'PHP-7.2'
Browse files Browse the repository at this point in the history
* PHP-7.2:
  Fix macro redefinition warnings
  • Loading branch information
weltling committed Nov 30, 2017
2 parents 7067f7c + 23d2bd3 commit a415006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Zend/zend_config.w32.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ 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)
Expand Down
1 change: 1 addition & 0 deletions sapi/apache2handler/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ 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");
}
Expand Down

0 comments on commit a415006

Please sign in to comment.