Include cmath so we get std::isnan
authordan sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 17:00:55 +0000 (13:00 -0400)
committerdan sinclair <dsinclair@chromium.org>
Wed, 28 Oct 2015 17:00:55 +0000 (13:00 -0400)
We need to include the <cmath> header so std::isnan exists.

BUG=pdfium:250
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1411633006 .

xfa/src/fxbarcode/utils.h

index e7df073..405f2f1 100644 (file)
@@ -63,7 +63,7 @@ class CBC_AutoPtr {
 #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_)\r
 #define FXSYS_isnan(x) _isnan(x)\r
 #elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_)\r
-#include <math.h>\r
+#include <cmath>\r
 #define FXSYS_isnan(x) std::isnan(x)\r
 #elif(_FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_)\r
 #include <math.h>\r