diff options
author | Jose <jose@zeroc.com> | 2016-03-09 12:18:07 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-03-09 12:18:07 +0100 |
commit | 2bee7a5a32454c3e3f267a3173c7a71930fa63a6 (patch) | |
tree | 0764b1358b634ebe8ca79222ed20f95792ae3f9b /php/src | |
parent | icegriddb Windows build fixes (diff) | |
download | ice-2bee7a5a32454c3e3f267a3173c7a71930fa63a6.tar.bz2 ice-2bee7a5a32454c3e3f267a3173c7a71930fa63a6.tar.xz ice-2bee7a5a32454c3e3f267a3173c7a71930fa63a6.zip |
isfinite not supported with VS 2012
Diffstat (limited to 'php/src')
-rw-r--r-- | php/src/IcePHP/Types.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/php/src/IcePHP/Types.cpp b/php/src/IcePHP/Types.cpp index 4f93205442e..94b7cfd4e2a 100644 --- a/php/src/IcePHP/Types.cpp +++ b/php/src/IcePHP/Types.cpp @@ -759,7 +759,12 @@ IcePHP::PrimitiveInfo::validate(zval* zv TSRMLS_DC) if(Z_TYPE_P(zv) == IS_DOUBLE) { double val = Z_DVAL_P(zv); - return (val <= numeric_limits<float>::max() && val >= -numeric_limits<float>::max()) || !isfinite(val); + return (val <= numeric_limits<float>::max() && val >= -numeric_limits<float>::max()) || +#if defined(_MSC_VER) && (_MSC_VER <= 1700) + !_finite(val); +#else + !isfinite(val); +#endif } break; } |