Index: base/float_util.h |
diff --git a/base/float_util.h b/base/float_util.h |
index 31a307dbf5cc762ce8c7c7b07dfbbf82337613e1..c40c9f6b238ef160d541f2fd43a365a447ac3bdf 100644 |
--- a/base/float_util.h |
+++ b/base/float_util.h |
@@ -8,7 +8,7 @@ |
#include "build/build_config.h" |
#include <float.h> |
-#include <math.h> |
+#include <cmath> |
Mark Mentovai
2013/04/18 21:58:46
Blank line between C and C++ system headers.
|
namespace base { |
@@ -17,7 +17,7 @@ inline bool IsFinite(const double& number) { |
// isfinite isn't available on Android: http://b.android.com/34793 |
return finite(number) != 0; |
Mark Mentovai
2013/04/18 21:58:46
Technically you need <math.h> for this on Android.
|
#elif defined(OS_POSIX) |
- return isfinite(number) != 0; |
+ return std::isfinite(number) != 0; |
#elif defined(OS_WIN) |
return _finite(number) != 0; |
#endif |