Fix windows compilation by undefining min and max when defined via minwindef.h (already in main) (#378)

This commit is contained in:
John S 2024-10-18 01:23:36 -04:00 committed by GitHub
parent f8a30e4fd8
commit 479cc9d79d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);