From 74d54eeabcd648ee5100853299de8af5ac4b36f2 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 22 May 2009 15:42:27 +0200 Subject: Make sure M_PI is defined It isn't on all platforms. --- examples/animation/stickman/stickman.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 +#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 -- cgit v0.12