Browse Source

replace isfinite with std::isfinite

Garrett Brown 4 years ago
parent
commit
dfd8c84d43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/libraries/box2d/b2_math.h

+ 1 - 1
src/libraries/box2d/b2_math.h

@@ -31,7 +31,7 @@
 /// This function is used to ensure that a floating point number is not a NaN or infinity.
 /// This function is used to ensure that a floating point number is not a NaN or infinity.
 inline bool b2IsValid(float x)
 inline bool b2IsValid(float x)
 {
 {
-	return isfinite(x);
+	return std::isfinite(x);
 }
 }
 
 
 #define	b2Sqrt(x)	sqrtf(x)
 #define	b2Sqrt(x)	sqrtf(x)