From a3f01331263eddbc502fb88734568ac38df5e316 Mon Sep 17 00:00:00 2001 From: Yuchen Deng Date: Sun, 20 Oct 2013 14:54:25 +0800 Subject: Fix MSVC2013 compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I79b50e786f46c9a15963f09158c18871c95fe093 Reviewed-by: Peter Kümmel Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4global_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml') diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h index e7b5a6778a..e0f51d22e5 100644 --- a/src/qml/jsruntime/qv4global_p.h +++ b/src/qml/jsruntime/qv4global_p.h @@ -55,7 +55,9 @@ namespace std { inline bool isinf(double d) { return !_finite(d) && !_isnan(d); } inline bool isnan(double d) { return !!_isnan(d); } inline bool isfinite(double d) { return _finite(d); } +#if _MSC_VER < 1800 inline bool signbit(double d) { return _copysign(1.0, d) < 0; } +#endif } // namespace std -- cgit v1.2.3