diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-07 00:08:46 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-07 00:08:46 +0200 |
commit | f95135686eda29b8677b53e782c849ac2a7a7e37 (patch) | |
tree | 803bdc940677442e22949d966587ee8a3612e07e /src/utils/mathutils.cpp | |
parent | 4b57962ee4c10e48956c2888199605bebdb17b8f (diff) | |
download | manaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.tar.gz manaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.tar.xz manaserv-f95135686eda29b8677b53e782c849ac2a7a7e37.zip |
Fixed undefined #defines in mingw and c++0x
It looks like mingw does not define all the stuff in c++0x it does
without.
Diffstat (limited to 'src/utils/mathutils.cpp')
-rw-r--r-- | src/utils/mathutils.cpp | 4 |
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]; |