diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-09-07 22:20:14 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-09-12 03:40:19 +0000 |
commit | a763d6a88be732de4beb3c28dbe2cde7a063c83a (patch) | |
tree | 2e0eba92a622be5e435307a10e50cf8580f10403 /src/qml/jsruntime/qv4mathobject.cpp | |
parent | 9fd39f34f7512d199a1f68dcff4f50e469897e31 (diff) |
Add missing math.h include for math functions
On some platforms, math functions in the std namespace don't work even
if cmath is included.
Change-Id: Ia71d22b07f508e0584de5320f376fbf4b3a2887b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/qml/jsruntime/qv4mathobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4mathobject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4mathobject.cpp b/src/qml/jsruntime/qv4mathobject.cpp index 2d9d81c64b..109d6c38b5 100644 --- a/src/qml/jsruntime/qv4mathobject.cpp +++ b/src/qml/jsruntime/qv4mathobject.cpp @@ -45,6 +45,7 @@ #include <QtCore/private/qnumeric_p.h> #include <QtCore/qthreadstorage.h> +#include <math.h> #include <cmath> using namespace QV4; |