Kaynağa Gözat

alias std::isfinite to isfinite, closes #304

Stefan Siegl 8 yıl önce
ebeveyn
işleme
ebdd866ae5
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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" {