summaryrefslogtreecommitdiffstats
path: root/src/utils/mathutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mathutils.cpp')
-rw-r--r--src/utils/mathutils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/mathutils.cpp b/src/utils/mathutils.cpp
index 3208fb5..6f7bc22 100644
--- a/src/utils/mathutils.cpp
+++ b/src/utils/mathutils.cpp
@@ -25,6 +25,10 @@
#include <string.h>
#include <float.h>
+#ifndef M_PI_2
+#define M_PI_2 1.57079632679489661923
+#endif
+
static const int MATH_UTILS_MAX_ANGLE = 360;
static float sinList[MATH_UTILS_MAX_ANGLE];