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:
parent
24aee36cb8
commit
ebdd866ae5
@ -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" {
|
||||||
|
Loading…
Reference in New Issue
Block a user