summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-22 15:42:27 +0200
committerKent Hansen <khansen@trolltech.com>2009-05-22 15:42:27 +0200
commit74d54eeabcd648ee5100853299de8af5ac4b36f2 (patch)
tree9763666c2985635c1d12792147dfc0b9520876b0 /examples/animation
parentb50f191132580771b470d5804a0a6616fbc1873f (diff)
Make sure M_PI is defined
It isn't on all platforms.
Diffstat (limited to 'examples/animation')
-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 e00ea41f2c..a3b200c100 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