From e9ea5e90366d485ca29db4aa013d38cd9fef3fc9 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Tue, 24 May 2016 14:51:17 +0200 Subject: [PATCH] Revert the check fro std::isnan() and isnan() --- simgear/math/SGMisc.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/math/SGMisc.hxx b/simgear/math/SGMisc.hxx index c317b431..79030536 100644 --- a/simgear/math/SGMisc.hxx +++ b/simgear/math/SGMisc.hxx @@ -153,10 +153,10 @@ public: /// Use with care: allways code that you do not need to use that! static bool isNaN(const T& v) { -#ifdef HAVE_ISNAN - return (isnan(v) != 0); -#elif defined HAVE_STD_ISNAN +#ifdef HAVE_STD_ISNAN return std::isnan(v); +#elif defined HAVE_ISNAN + return (isnan(v) != 0); #else // Use that every compare involving a NaN returns false // But be careful, some usual compiler switches like for example