From cc944f28c105aaf8f6cd1e3f9e7c40ad41d710d9 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sat, 25 Mar 2023 13:29:29 -0400 Subject: [PATCH] Removed STL function added in C++11 from Detour (#616) to maintain C++03 standard compatibility --- Detour/Include/DetourMath.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Detour/Include/DetourMath.h b/Detour/Include/DetourMath.h index 54af8af..5528ead 100644 --- a/Detour/Include/DetourMath.h +++ b/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 inline float dtMathFabsf(float x) { return fabsf(x); } inline float dtMathSqrtf(float x) { return sqrtf(x); } @@ -19,6 +16,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