diff options
author | Yuchen Deng <loaden@gmail.com> | 2013-10-20 14:54:25 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-21 15:18:15 +0200 |
commit | a3f01331263eddbc502fb88734568ac38df5e316 (patch) | |
tree | 944ad06a768a652f1e869e558abe999e55c39288 /src/qml | |
parent | 8a6fadb39aec58f373ef24f39d39f7fbc050277d (diff) |
Fix MSVC2013 compilation
Change-Id: I79b50e786f46c9a15963f09158c18871c95fe093
Reviewed-by: Peter Kümmel <syntheticpp@gmx.net>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/jsruntime/qv4global_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |