From 69ee9d07a37a2907a2b78f193a787efd45c2f94d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:31:48 +0200 Subject: [PATCH] Recast: remove extraneous include Use the non-std version of isfinite instead. --- src/thirdparty/recast/Detour/Include/DetourMath.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/thirdparty/recast/Detour/Include/DetourMath.h b/src/thirdparty/recast/Detour/Include/DetourMath.h index a456e01c..3f9b30d4 100644 --- a/src/thirdparty/recast/Detour/Include/DetourMath.h +++ b/src/thirdparty/recast/Detour/Include/DetourMath.h @@ -8,9 +8,6 @@ Members in this module are wrappers around the standard math library #define DETOURMATH_H #include -// This include is required because libstdc++ has problems with isfinite -// if cmath is included before math.h. -#include /// The value of PI used by Recast. static const float DT_PI = 3.14159265f; @@ -27,6 +24,6 @@ inline float dtMathCeilf(float x) { return ceilf(x); } inline float dtMathCosf(float x) { return cosf(x); } inline float dtMathSinf(float x) { return sinf(x); } inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); } -inline bool dtMathIsfinite(float x) { return std::isfinite(x); } +inline bool dtMathIsfinite(float x) { return isfinite(x); } #endif