0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 12:51:52 +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,
* 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" {