From 4741c548d6bbd79f1cded18964e3418a16f77fdb Mon Sep 17 00:00:00 2001 From: Caleb Butler Date: Thu, 5 Oct 2023 09:40:52 -0400 Subject: [PATCH] Fix compiling on VS2019 In VS2019, although the math functions are intrinsic, they need to be declared by the math.h header. So the header must be included in the ifndef block. --- src/ExtMath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ExtMath.c b/src/ExtMath.c index a44587c45..61eb279fc 100644 --- a/src/ExtMath.c +++ b/src/ExtMath.c @@ -5,6 +5,7 @@ #include #ifndef __GNUC__ +#include float Math_AbsF(float x) { return fabsf(x); /* MSVC intrinsic */ } float Math_SqrtF(float x) { return sqrtf(x); /* MSVC intrinsic */ } #endif