mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-08 11:28:42 +00:00
alias std::isfinite to isfinite, closes #304
This commit is contained in:
parent
24aee36cb8
commit
ebdd866ae5
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user