浏览代码

alias std::isfinite to isfinite, closes #304

Stefan Siegl 8 年之前
父节点
当前提交
ebdd866ae5
共有 1 个文件被更改,包括 3 次插入0 次删除
  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" {