* PHP-7.1:
Fix C++11 and up compatibility for zend_finite and more
#include <math.h>
-/* To enable the is_nan, is_infinite and is_finite PHP functions */
-#ifdef NETWARE
- #define HAVE_DECL_ISNAN 1
- #define HAVE_DECL_ISINF 1
- #define HAVE_DECL_ISFINITE 1
-#endif
-
#ifndef zend_isnan
- #if HAVE_DECL_ISNAN
+ #if HAVE_DECL_ISNAN && (!defined(__cplusplus) || __cplusplus < 201103L)
#define zend_isnan(a) isnan(a)
#elif defined(HAVE_FPCLASS)
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
#include <math.h>
-/* To enable the is_nan, is_infinite and is_finite PHP functions */
-#ifdef NETWARE
- #define HAVE_DECL_ISNAN 1
- #define HAVE_DECL_ISINF 1
- #define HAVE_DECL_ISFINITE 1
-#endif
-
#ifndef zend_isnan
- #if HAVE_DECL_ISNAN
+ #if HAVE_DECL_ISNAN && (!defined(__cplusplus) || __cplusplus < 201103L)
#define zend_isnan(a) isnan(a)
#elif defined(HAVE_FPCLASS)
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))