summaryrefslogtreecommitdiff
blob: 04dc131e7df31c735dfe4344db8790d3caba34d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- include/geos/platform.h.in
+++ include/geos/platform.h.in
@@ -97,8 +97,9 @@
    // It does leave a version in std.
 #  define ISNAN(x) (std::isnan(x))
 # elif defined(__sun) || defined(__sun__)
+#  define _XOPEN_SOURCE 600  // force iso/math_c99
 #  include <math.h>
-#  define ISNAN(x) (::isnan(x))
+#  define ISNAN(x) (std::isnan(x))
 # endif
 #endif