From a763d6a88be732de4beb3c28dbe2cde7a063c83a Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 7 Sep 2017 22:20:14 -0700 Subject: 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 --- src/qml/jsruntime/qv4mathobject.cpp | 1 + src/quick/items/qquickflickable.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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 #include +#include #include using namespace QV4; diff --git a/src/quick/items/qquickflickable.cpp b/src/quick/items/qquickflickable.cpp index c92d370a48..c75a682f4a 100644 --- a/src/quick/items/qquickflickable.cpp +++ b/src/quick/items/qquickflickable.cpp @@ -55,6 +55,7 @@ #include #include "qplatformdefs.h" +#include #include QT_BEGIN_NAMESPACE -- cgit v1.2.3