File tree 2 files changed +14
-15
lines changed
2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,20 @@ char *alloca();
442
442
443
443
#define ZEND_NAN NAN
444
444
445
+ #if defined(__cplusplus) && __cplusplus >= 201103L
446
+ extern " C++" {
447
+ # include < cmath>
448
+ }
449
+ # define zend_isnan std::isnan
450
+ # define zend_isinf std::isinf
451
+ # define zend_finite std::isfinite
452
+ #else
453
+ # include < math.h>
454
+ # define zend_isnan (a ) isnan(a)
455
+ # define zend_isinf (a ) isinf(a)
456
+ # define zend_finite (a ) isfinite(a)
457
+ #endif
458
+
445
459
#define ZEND_STRL (str ) (str), (sizeof (str)-1 )
446
460
#define ZEND_STRS (str ) (str), (sizeof (str))
447
461
#define ZEND_NORMALIZE_BOOL (n ) \
Original file line number Diff line number Diff line change @@ -61,21 +61,6 @@ AH_BOTTOM([
61
61
62
62
#include <string.h>
63
63
64
- #if defined(__cplusplus) && __cplusplus >= 201103L
65
- extern "C++" {
66
- #include <cmath>
67
- #define zend_isnan std::isnan
68
- #define zend_isinf std::isinf
69
- #define zend_finite std::isfinite
70
- }
71
- #else
72
- #include <math.h>
73
-
74
- #define zend_isnan(a) isnan(a)
75
- #define zend_isinf(a) isinf(a)
76
- #define zend_finite(a) isfinite(a)
77
-
78
- #endif
79
64
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
80
65
81
66
#endif /* PHP_CONFIG_H */
You can’t perform that action at this time.
0 commit comments