From f95135686eda29b8677b53e782c849ac2a7a7e37 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sun, 7 Apr 2013 00:08:46 +0200 Subject: Fixed undefined #defines in mingw and c++0x It looks like mingw does not define all the stuff in c++0x it does without. --- src/utils/mathutils.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils/mathutils.cpp') diff --git a/src/utils/mathutils.cpp b/src/utils/mathutils.cpp index 3208fb50..6f7bc223 100644 --- a/src/utils/mathutils.cpp +++ b/src/utils/mathutils.cpp @@ -25,6 +25,10 @@ #include #include +#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]; -- cgit v1.2.3-70-g09d2