0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-08 14:48:40 +00:00

alias std::isfinite to isfinite, closes #304

This commit is contained in:
Stefan Siegl 2017-03-16 20:57:33 +01:00
parent 24aee36cb8
commit ebdd866ae5

View File

@ -33,6 +33,9 @@
/* php.h requires the isnan() macro, which is removed by c++ <cmath> header, /* php.h requires the isnan() macro, which is removed by c++ <cmath> header,
* work around: re-define the macro to std::isnan function */ * work around: re-define the macro to std::isnan function */
#define isnan(a) std::isnan(a) #define isnan(a) std::isnan(a)
/* likewise isfinite */
#define isfinite(a) std::isfinite(a)
#endif #endif
extern "C" { extern "C" {