[geos-commits] r3467 - branches/3.3/include/geos
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat Sep 17 11:42:58 EDT 2011
Author: strk
Date: 2011-09-17 08:42:58 -0700 (Sat, 17 Sep 2011)
New Revision: 3467
Modified:
branches/3.3/include/geos/platform.h.in
Log:
Use the global isnan from math.h for Solaris (#461)
Modified: branches/3.3/include/geos/platform.h.in
===================================================================
--- branches/3.3/include/geos/platform.h.in 2011-09-12 07:48:38 UTC (rev 3466)
+++ branches/3.3/include/geos/platform.h.in 2011-09-17 15:42:58 UTC (rev 3467)
@@ -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