summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-22 13:42:27 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-05-22 13:42:27 (GMT)
commit74d54eeabcd648ee5100853299de8af5ac4b36f2 (patch)
tree9763666c2985635c1d12792147dfc0b9520876b0 /examples/animation/stickman
parentb50f191132580771b470d5804a0a6616fbc1873f (diff)
downloadQt-74d54eeabcd648ee5100853299de8af5ac4b36f2.zip
Qt-74d54eeabcd648ee5100853299de8af5ac4b36f2.tar.gz
Qt-74d54eeabcd648ee5100853299de8af5ac4b36f2.tar.bz2
Make sure M_PI is defined
It isn't on all platforms.
Diffstat (limited to 'examples/animation/stickman')
-rw-r--r--examples/animation/stickman/stickman.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/animation/stickman/stickman.cpp b/examples/animation/stickman/stickman.cpp
index e00ea41..a3b200c 100644
--- a/examples/animation/stickman/stickman.cpp
+++ b/examples/animation/stickman/stickman.cpp
@@ -48,6 +48,10 @@
#define _USE_MATH_DEFINES
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
static const int NodeCount = 16;
static const qreal Coords[NodeCount * 2] = {
0.0, -150.0, // head, #0