aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNarice <31109099+Narice@users.noreply.github.com>2019-05-01 22:03:32 +0200
committerGitHub <noreply@github.com>2019-05-01 22:03:32 +0200
commita54af067c2c2c5ef11c39fdf8f0b00e029e663d1 (patch)
tree76a8fe720f66b34364f8fd963486455763d945e7 /src
parent59c436c922b9f7fe9bfb0d595f17dee0330f289f (diff)
downloadraylib-a54af067c2c2c5ef11c39fdf8f0b00e029e663d1.tar.gz
raylib-a54af067c2c2c5ef11c39fdf8f0b00e029e663d1.zip
Added guards to PI define
Added guards to not redefine it if the user is using it with raylib.h also added an 'f' at the end of the define to keep compliant with raylib's PI define
Diffstat (limited to 'src')
-rw-r--r--src/easings.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/easings.h b/src/easings.h
index 99685949..810aeccb 100644
--- a/src/easings.h
+++ b/src/easings.h
@@ -91,7 +91,10 @@
#endif
#include <math.h> // Required for: sin(), cos(), sqrt(), pow()
-#define PI 3.14159265358979323846 //Required as PI is not always defined in math.h
+
+#ifndef PI
+ #define PI 3.14159265358979323846f //Required as PI is not always defined in math.h
+#endif
#ifdef __cplusplus
extern "C" { // Prevents name mangling of functions