[geos-commits] r3902 - trunk/include/geos

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Aug 21 03:53:07 PDT 2013


Author: robe
Date: 2013-08-21 03:53:06 -0700 (Wed, 21 Aug 2013)
New Revision: 3902

Modified:
   trunk/include/geos/platform.h.in
Log:
#650 isnan workaround OS detection missing NetBSD, DragonFly, Sun nuance

Modified: trunk/include/geos/platform.h.in
===================================================================
--- trunk/include/geos/platform.h.in	2013-08-20 12:15:35 UTC (rev 3901)
+++ trunk/include/geos/platform.h.in	2013-08-21 10:53:06 UTC (rev 3902)
@@ -91,11 +91,13 @@
 # elif defined(__MINGW32__) || defined(__CYGWIN__)
 // sandro furieri: sanitizing MinGW32
 #  define ISNAN(x) (std::isnan(x))
-# elif defined(__OSX__) || defined(__APPLE__)
+# elif defined(__OSX__) || defined(__APPLE__) || \
+       defined(__NetBSD__) || defined(__DragonFly__) ||	\
+       (defined(__sun) && defined(__GNUC__))
    // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion.
    // It does leave a version in std.
 #  define ISNAN(x) (std::isnan(x))
-# elif defined(__sun) || defined(__sun__)
+# elif (defined(__sun) || defined(__sun__)) && defined(__SUNPRO_CC)
 #  include <math.h>
 #  define ISNAN(x) (::isnan(x))
 # endif



More information about the geos-commits mailing list