Преглед изворни кода

don't define isnan/isfinite for PHP 7.4

Stefan Siegl пре 5 година
родитељ
комит
83c215d4b1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      php_v8js_macros.h

+ 1 - 1
php_v8js_macros.h

@@ -29,7 +29,7 @@
 #include <mutex>
 
 #include <cmath>
-#ifndef isnan
+#if PHP_VERSION_ID < 70400 && !defined(isnan)
 /* 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)