aboutsummaryrefslogtreecommitdiffstats
path: root/common/math_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/math_defs.h')
-rw-r--r--common/math_defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index 428f5181..8ce93d0a 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -6,6 +6,10 @@
#include <float.h>
#endif
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif
+
#define F_PI (3.14159265358979323846f)
#define F_PI_2 (1.57079632679489661923f)
#define F_TAU (6.28318530717958647692f)