diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-02 13:54:03 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-02 13:54:03 -0700 |
| commit | 4a3d2ea795e5a13ce3b0ce96fcee55fd2c2f5a80 (patch) | |
| tree | b428e1944b7b374a20bbbd886a85d861fc78b0fa /src/common.h | |
| parent | d98ae9cb5388b41eaa158ad4eb90723da7ada6ee (diff) | |
added ifndef to stop collisions
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 5 |
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)) |