From 4a3d2ea795e5a13ce3b0ce96fcee55fd2c2f5a80 Mon Sep 17 00:00:00 2001 From: steven-na Date: Sun, 2 Aug 2026 13:54:03 -0700 Subject: added ifndef to stop collisions --- src/common.h | 5 +++++ 1 file changed, 5 insertions(+) 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)) -- cgit v1.2.3