From ff717c6d541381ea5c787ce7e5376e71b705b25d Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Thu, 29 Sep 2011 13:36:30 +0200 Subject: [PATCH] Fix compilation with c++0x Change-Id: I5d94cfc03c2ecb9a49e185d23689c11f200ca907 Reviewed-on: http://codereview.qt-project.org/5794 Reviewed-by: Qt Sanity Bot Reviewed-by: Roberto Raggi --- src/3rdparty/javascriptcore/DateMath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/javascriptcore/DateMath.cpp b/src/3rdparty/javascriptcore/DateMath.cpp index e477527..8932840 100644 --- a/src/3rdparty/javascriptcore/DateMath.cpp +++ b/src/3rdparty/javascriptcore/DateMath.cpp @@ -75,7 +75,7 @@ #include #include #include -#include +#include //#if HAVE(SYS_TIME_H) #if defined(EXISTS_SYS_TIME) @@ -346,7 +346,7 @@ double timeClip(double t) return NaN; return t >= 0 ? floor(t) : ceil(t); #else - if (!isfinite(t) || fabs(t) > maxECMAScriptTime) + if (!std::isfinite(t) || fabs(t) > maxECMAScriptTime) return NaN; return trunc(t); #endif -- 2.7.4