From 83c215d4b1ee84fa4340fe1cc93f03a9764d4a44 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 3 Apr 2020 09:18:59 +0200 Subject: [PATCH] don't define isnan/isfinite for PHP 7.4 --- php_v8js_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_v8js_macros.h b/php_v8js_macros.h index ad7777b..fa7247c 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -29,7 +29,7 @@ #include #include -#ifndef isnan +#if PHP_VERSION_ID < 70400 && !defined(isnan) /* php.h requires the isnan() macro, which is removed by c++ header, * work around: re-define the macro to std::isnan function */ #define isnan(a) std::isnan(a)