소스 검색

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" {