From 479cc9d79d073c72e1a81d51bac9825ef18ed74f Mon Sep 17 00:00:00 2001 From: John S <138552829+Multi-Volt@users.noreply.github.com> Date: Fri, 18 Oct 2024 01:23:36 -0400 Subject: [PATCH] Fix windows compilation by undefining min and max when defined via minwindef.h (already in main) (#378) --- src/engine/math_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/math_util.h b/src/engine/math_util.h index f05cff97..6df41f3a 100644 --- a/src/engine/math_util.h +++ b/src/engine/math_util.h @@ -24,6 +24,14 @@ extern f32 gSineTable[]; extern f32 gCosineTable[]; #endif +#if defined(min) +#undef min +#endif + +#if defined(max) +#undef max +#endif + // Inline Function prototypes f32 minf(f32 a, f32 b); s16 min(s16 a, s16 b);