summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-02 13:54:03 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-02 13:54:03 -0700
commit4a3d2ea795e5a13ce3b0ce96fcee55fd2c2f5a80 (patch)
treeb428e1944b7b374a20bbbd886a85d861fc78b0fa /src/common.h
parentd98ae9cb5388b41eaa158ad4eb90723da7ada6ee (diff)
added ifndef to stop collisions
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index ad7a288..abca66d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -8,8 +8,13 @@
#define MiB(n) ((u64)n<<20)
#define GiB(n) ((u64)n<<30)
+#ifndef PI
#define PI 3.14159265358979323846264338327950
+#endif // !PI
+
+#ifndef F64_EPSILON
#define F64_EPSILON = 1e-9
+#endif // !F64_EPSILON
#define F64_EQ(x, y, eps) (fabs((x) - (y)) <= (eps))
#define MAX(n, m) ((n > m) ? (n) : (m))