summaryrefslogtreecommitdiffstatshomepage
path: root/py/modmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/modmath.c')
-rw-r--r--py/modmath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/modmath.c b/py/modmath.c
index 6abf8ab3e9..54262f6115 100644
--- a/py/modmath.c
+++ b/py/modmath.c
@@ -31,6 +31,11 @@
#include <math.h>
+// M_PI is not part of the math.h standard and may not be defined
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif
+
/// \module math - mathematical functions
///
/// The `math` module provides some basic mathematical funtions for