aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-23 16:06:03 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-21 03:36:34 +0300
commit71c6845a9446fc22a84469f28e0e6890794802e3 (patch)
treeca7b73a79c30caf7f3d38b53efafa0d4f0e85e86 /src/util
parent4b97023251890314c85ad4710d85ddeae6ac3e22 (diff)
downloadminetest-71c6845a9446fc22a84469f28e0e6890794802e3.tar.gz
minetest-71c6845a9446fc22a84469f28e0e6890794802e3.tar.bz2
minetest-71c6845a9446fc22a84469f28e0e6890794802e3.zip
Define M_PI on MSVC
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mathconstants.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/mathconstants.h b/src/util/mathconstants.h
new file mode 100644
index 000000000..1b478aa95
--- /dev/null
+++ b/src/util/mathconstants.h
@@ -0,0 +1,7 @@
+#include <math.h>
+
+// MSVC doesn't seem to define this
+#ifndef M_PI
+ #define M_PI 3.1415926535
+#endif
+