diff options
author | phajdan.jr <phajdan.jr@chromium.org> | 2016-05-31 12:20:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 12:20:37 -0700 |
commit | f02f7e58b56b324d352322335636b3bf44d961d8 (patch) | |
tree | d286a8e425415d99d65f065a891159cc867d13f3 | |
parent | 89ba6de4150875f8095ced93e62cf71d0ec52c36 (diff) | |
download | pdfium-f02f7e58b56b324d352322335636b3bf44d961d8.tar.xz |
Fix compile error ‘isnan’ was not declared in this scope
BUG=none
Review-Url: https://codereview.chromium.org/2022793002
-rw-r--r-- | xfa/fxbarcode/utils.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxbarcode/utils.h b/xfa/fxbarcode/utils.h index ca2f3214c0..dadf34859d 100644 --- a/xfa/fxbarcode/utils.h +++ b/xfa/fxbarcode/utils.h @@ -26,12 +26,10 @@ void BC_FX_ByteString_Append(CFX_ByteString& dst, const CFX_ByteArray& ba); #endif #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_) #define FXSYS_isnan(x) _isnan(x) -#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_) +#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ || \ + _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_) #include <cmath> #define FXSYS_isnan(x) std::isnan(x) -#elif(_FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_) -#include <math.h> -#define FXSYS_isnan(x) isnan(x) #endif #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_) #define FXSYS_nan() (std::numeric_limits<float>::quiet_NaN()) |