Removed STL function added in C++11 from Detour (#616)

to maintain C++03 standard compatibility
This commit is contained in:
Graham Pentheny 2023-03-25 13:29:29 -04:00 committed by GitHub
parent a015950eaa
commit cc944f28c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,6 @@ Members in this module are wrappers around the standard math library
#define DETOURMATH_H
#include <math.h>
// This include is required because libstdc++ has problems with isfinite
// if cmath is included before math.h.
#include <cmath>
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