summaryrefslogtreecommitdiff
path: root/Zend/zend_config.w32.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-11-30 12:41:44 +0100
committerAnatol Belski <ab@php.net>2017-11-30 12:41:44 +0100
commita415006b5e9735dc9e731816ca0ef18e26402fdf (patch)
tree1ff3b7846a6395efd57a120141a4abc2c9b2af22 /Zend/zend_config.w32.h
parent7067f7ccb40010275c7020949753b412025e3024 (diff)
parent23d2bd374838897ec97f9994e70856686a89f132 (diff)
downloadphp-git-a415006b5e9735dc9e731816ca0ef18e26402fdf.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Fix macro redefinition warnings
Diffstat (limited to 'Zend/zend_config.w32.h')
-rw-r--r--Zend/zend_config.w32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_config.w32.h b/Zend/zend_config.w32.h
index ddebdeaed8..8ca87f3c05 100644
--- a/Zend/zend_config.w32.h
+++ b/Zend/zend_config.w32.h
@@ -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)