From 9149089e0890811505df9ba1893768e2d92cff6d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 4 Sep 2015 17:48:16 -0400 Subject: [PATCH] Fix a compilation error when using '-std=c++11' --- src/base/checkFinite.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/checkFinite.cpp b/src/base/checkFinite.cpp index 316e22757..f5de5ebd2 100644 --- a/src/base/checkFinite.cpp +++ b/src/base/checkFinite.cpp @@ -28,14 +28,14 @@ #include #define isnan(x) _isnan(x) #define finite(x) _finite(x) -#elif defined(USE_STD_ISNAN) - // From C++11 - using std::isnan; - #define finite(x) std::isfinite(x) #elif defined(USE_GLOBAL_ISNAN) // From C99 using ::isnan; using ::finite; +#elif defined(USE_STD_ISNAN) + // From C++11 + using std::isnan; + #define finite(x) std::isfinite(x) #endif namespace Cantera {