summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Holzammer <andreas.holzammer@kdab.com>2012-11-30 15:39:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-03 09:22:13 +0100
commit72388121aa4b576277a7dfbc7cd18224bfaa6ad4 (patch)
tree34761be472d1c0630f6339807d02ff83bda95ed7
parent0d40958347ad0b60fb1ccd15ab7a59e1407e945d (diff)
WINCE: Fix missing cosf
cosf seems to be defined in the cmath header for Windows CE, so include it to fix the issue of not finding the symbol cosf. Change-Id: I7317668838912325d45be0d4087ae3055940d3cd Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r--src/gui/math3d/qmatrix4x4.cpp2
-rw-r--r--src/gui/math3d/qquaternion.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/math3d/qmatrix4x4.cpp b/src/gui/math3d/qmatrix4x4.cpp
index 4e35d49118..d8c2116b0d 100644
--- a/src/gui/math3d/qmatrix4x4.cpp
+++ b/src/gui/math3d/qmatrix4x4.cpp
@@ -45,6 +45,8 @@
#include <QtGui/qmatrix.h>
#include <QtGui/qtransform.h>
+#include <cmath>
+
QT_BEGIN_NAMESPACE
#ifndef QT_NO_MATRIX4X4
diff --git a/src/gui/math3d/qquaternion.cpp b/src/gui/math3d/qquaternion.cpp
index 3f39fa43c3..2ccdd315d3 100644
--- a/src/gui/math3d/qquaternion.cpp
+++ b/src/gui/math3d/qquaternion.cpp
@@ -45,6 +45,8 @@
#include <QtCore/qvariant.h>
#include <QtCore/qdebug.h>
+#include <cmath>
+
QT_BEGIN_NAMESPACE
#ifndef QT_NO_QUATERNION