0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 12:51:52 +00:00

don't define isnan/isfinite for PHP 7.4

This commit is contained in:
Stefan Siegl 2020-04-03 09:18:59 +02:00
parent 34a18fde06
commit 83c215d4b1
No known key found for this signature in database
GPG Key ID: 73942AF5642F3DDA

View File

@ -29,7 +29,7 @@
#include <mutex>
#include <cmath>
#ifndef isnan
#if PHP_VERSION_ID < 70400 && !defined(isnan)
/* 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)