aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-10-02 16:57:38 +1030
committerGitHub <[email protected]>2023-10-02 16:57:38 +1030
commitea5c402514d1b0c926ffb9419815bdde91e4222b (patch)
treea39b1c77a3d2484d8357aac9ff93ae43ea29edad /src
parente14d6909a83589d4c61b8b8972be42d227c6987d (diff)
parente0ed157c0039dd99bad92840be46454c0da37383 (diff)
Merge pull request #7 from majbthrd/mpidefine
add M_PI to defines.h
Diffstat (limited to 'src')
-rw-r--r--src/defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defines.h b/src/defines.h
index 2c63439..a2fd9ec 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -42,6 +42,9 @@
#ifndef PI
#define PI 3.141592654 /* mathematical constant */
#endif
+#ifndef M_PI
+#define M_PI 3.14159265358979323846f
+#endif
#define TWO_PI 6.283185307 /* mathematical constant */
#define MAX_STR 2048 /* maximum string size */