aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/javascriptcore/DateMath.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-29 13:36:30 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-30 10:37:05 +0200
commitff717c6d541381ea5c787ce7e5376e71b705b25d (patch)
tree1182cc98bb08b4c4d901578a1bb0ff115f38ecd6 /src/3rdparty/javascriptcore/DateMath.cpp
parentb1e650a889fd18bdc47aed07c518f5f8ba663d97 (diff)
Fix compilation with c++0x
Change-Id: I5d94cfc03c2ecb9a49e185d23689c11f200ca907 Reviewed-on: http://codereview.qt-project.org/5794 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/3rdparty/javascriptcore/DateMath.cpp')
-rw-r--r--src/3rdparty/javascriptcore/DateMath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/javascriptcore/DateMath.cpp b/src/3rdparty/javascriptcore/DateMath.cpp
index e4775273e2..8932840366 100644
--- a/src/3rdparty/javascriptcore/DateMath.cpp
+++ b/src/3rdparty/javascriptcore/DateMath.cpp
@@ -75,7 +75,7 @@
#include <limits>
#include <stdint.h>
#include <time.h>
-#include <math.h>
+#include <cmath>
//#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