summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-06-29 23:09:59 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-06-29 23:11:47 (GMT)
commite3c1039d4d10aa383a1f681e7dd9c1129d22d8ca (patch)
tree635a14ce4270ebb2af73443f16c8636ae9ec6094
parentf0a66c60d1eba14be2b3fdc9307fdd2e4a421a5c (diff)
downloadQt-e3c1039d4d10aa383a1f681e7dd9c1129d22d8ca.zip
Qt-e3c1039d4d10aa383a1f681e7dd9c1129d22d8ca.tar.gz
Qt-e3c1039d4d10aa383a1f681e7dd9c1129d22d8ca.tar.bz2
Fixed compile with Windows CE 5.
On some systems, math.h still doesn't define M_PI.
-rw-r--r--src/gui/kernel/qdirectionrecognizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qdirectionrecognizer.cpp b/src/gui/kernel/qdirectionrecognizer.cpp
index b88d4f0..a1bc5b1 100644
--- a/src/gui/kernel/qdirectionrecognizer.cpp
+++ b/src/gui/kernel/qdirectionrecognizer.cpp
@@ -43,6 +43,10 @@
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.141592653589793238462643
+#endif
+
QT_BEGIN_NAMESPACE
enum {