]> granicus.if.org Git - php/commitdiff
Drop duplicate definitions of zend_isnan and friends
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 7 Dec 2019 17:05:44 +0000 (18:05 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 8 Dec 2019 13:55:26 +0000 (14:55 +0100)
Following up on commit 1c4ad17[1], we remove these definitions from
zend_config.w32.h, since they would be overridden by those in
zend_portability.h anyway.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=1c4ad17cc1e483201a36b027f20aab1f91d19628>

Zend/zend_config.w32.h

index 19a5165e4b25d963abcbcaf55c4bce97d9a31ece..47387895e590f430034c29f217f779a0c7f1b69e 100644 (file)
 #endif
 #define strcasecmp(s1, s2) _stricmp(s1, s2)
 #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
-#if defined(__cplusplus) && __cplusplus >= 201103L
-extern "C++" {
-#include <cmath>
-#define zend_isnan std::isnan
-#define zend_isinf std::isinf
-#define zend_finite std::isfinite
-}
-#else
-#define zend_isinf(a)  ((_fpclass(a) == _FPCLASS_PINF) || (_fpclass(a) == _FPCLASS_NINF))
-#define zend_finite(x) _finite(x)
-#define zend_isnan(x)  _isnan(x)
-#endif
 
 #ifndef __cplusplus
 /* This will cause the compilation process to be MUCH longer, but will generate