| Index: base/float_util.h
|
| diff --git a/base/float_util.h b/base/float_util.h
|
| index 31a307dbf5cc762ce8c7c7b07dfbbf82337613e1..458e85965b29657bf4044837c4cd1c88263d5d98 100644
|
| --- a/base/float_util.h
|
| +++ b/base/float_util.h
|
| @@ -8,16 +8,14 @@
|
| #include "build/build_config.h"
|
|
|
| #include <float.h>
|
| -#include <math.h>
|
| +
|
| +#include <cmath>
|
|
|
| namespace base {
|
|
|
| inline bool IsFinite(const double& number) {
|
| -#if defined(OS_ANDROID)
|
| - // isfinite isn't available on Android: http://b.android.com/34793
|
| - return finite(number) != 0;
|
| -#elif defined(OS_POSIX)
|
| - return isfinite(number) != 0;
|
| +#if defined(OS_POSIX)
|
| + return std::isfinite(number) != 0;
|
| #elif defined(OS_WIN)
|
| return _finite(number) != 0;
|
| #endif
|
|
|