Skip to content

Commit ebdd866

Browse files
committed
alias std::isfinite to isfinite, closes #304
1 parent 24aee36 commit ebdd866

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

php_v8js_macros.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
/* php.h requires the isnan() macro, which is removed by c++ <cmath> header,
3434
* work around: re-define the macro to std::isnan function */
3535
#define isnan(a) std::isnan(a)
36+
37+
/* likewise isfinite */
38+
#define isfinite(a) std::isfinite(a)
3639
#endif
3740

3841
extern "C" {

0 commit comments

Comments
 (0)