Browse Source

Fix isfinite erroring

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

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

@@ -24,12 +24,12 @@
 #define B2_MATH_H
 
 #include "b2_settings.h"
-#include <math.h>
+#include <cmath>
 
 /// This function is used to ensure that a floating point number is not a NaN or infinity.
 inline bool b2IsValid(float x)
 {
-	return isfinite(x);
+	return std::isfinite(x);
 }
 
 #define	b2Sqrt(x)	sqrtf(x)