summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-08 20:20:08 +0200
committerAnatol Belski <ab@php.net>2018-07-08 20:20:08 +0200
commitad790bea2e4a8a25c79ceab964601f3785cd2bf1 (patch)
tree9bcca091d0aa0cadb185630b2073292373aa5d46 /ext/mysqlnd/mysqlnd_wireprotocol.c
parent47fb17b108b401d8dbb5f1b94ec99ea0d020288a (diff)
downloadphp-git-ad790bea2e4a8a25c79ceab964601f3785cd2bf1.tar.gz
Fix C++11 and up compatibility for zend_finite and more
C++11 puts isfinite, isinf, isnan and a lot of other stuff into the std namespace. Thus, if a C++11 or newer source is compiled, these symbols won't be available. A good solution would be to include cmath, but depending on a particular compiler that might remove even more stuff from the global namespace, so such a fix should only target master. For now, just keep these defines same for C++11 and upper, as the actual C++ code should use symbols from the std namespace anyway. This especially concerns older GCC versions like at least 4 and 5, which are used by default in the LTS Linux distros.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
0 files changed, 0 insertions, 0 deletions