[geos-commits] r3903 - branches/3.4/include/geos
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed Aug 21 04:14:44 PDT 2013
Author: robe
Date: 2013-08-21 04:14:44 -0700 (Wed, 21 Aug 2013)
New Revision: 3903
Modified:
branches/3.4/include/geos/platform.h.in
Log:
#650 isnan workaround OS detection missing NetBSD, DragonFly, Sun nuance
Modified: branches/3.4/include/geos/platform.h.in
===================================================================
--- branches/3.4/include/geos/platform.h.in 2013-08-21 10:53:06 UTC (rev 3902)
+++ branches/3.4/include/geos/platform.h.in 2013-08-21 11:14:44 UTC (rev 3903)
@@ -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