Browse Source

alias std::isfinite to isfinite, closes #304

Stefan Siegl 8 years ago
parent
commit
ebdd866ae5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      php_v8js_macros.h

+ 3 - 0
php_v8js_macros.h

@@ -33,6 +33,9 @@
 /* php.h requires the isnan() macro, which is removed by c++ <cmath> header,
  * work around: re-define the macro to std::isnan function */
 #define isnan(a) std::isnan(a)
+
+/* likewise isfinite */
+#define isfinite(a) std::isfinite(a)
 #endif
 
 extern "C" {