From ebdd866ae5eb9fcfcdf3f15f001ada02580eeb2a Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Thu, 16 Mar 2017 20:57:33 +0100 Subject: [PATCH] alias std::isfinite to isfinite, closes #304 --- php_v8js_macros.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php_v8js_macros.h b/php_v8js_macros.h index f233ec3..559e506 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -33,6 +33,9 @@ /* 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) + +/* likewise isfinite */ +#define isfinite(a) std::isfinite(a) #endif extern "C" {