[geos-commits] r3468 - trunk/include/geos
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat Sep 17 11:53:01 EDT 2011
Author: strk
Date: 2011-09-17 08:53:01 -0700 (Sat, 17 Sep 2011)
New Revision: 3468
Modified:
trunk/include/geos/platform.h.in
Log:
Use the global isnan from math.h for Solaris (#461)
Modified: trunk/include/geos/platform.h.in
===================================================================
--- trunk/include/geos/platform.h.in 2011-09-17 15:42:58 UTC (rev 3467)
+++ trunk/include/geos/platform.h.in 2011-09-17 15:53:01 UTC (rev 3468)
@@ -95,6 +95,9 @@
// 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__)
+# include <math.h>
+# define ISNAN(x) (::isnan(x))
# endif
#endif
More information about the geos-commits
mailing list