]> git.mxchange.org Git - simgear.git/commitdiff
Revert the check fro std::isnan() and isnan()
authorErik Hofman <erik@ehofman.com>
Tue, 24 May 2016 12:51:17 +0000 (14:51 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/math/SGMisc.hxx

index c317b431007180f0e71e9f54895a0f2d496cf002..79030536e85d013cd9d4d5356fcfdbc9d7af9c0e 100644 (file)
@@ -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