From d7288dbd38837663eef408c10e9c660adfed538f Mon Sep 17 00:00:00 2001 From: strk Date: Sat, 17 Sep 2011 15:42:58 +0000 Subject: [PATCH] Use the global isnan from math.h for Solaris (#461) git-svn-id: http://svn.osgeo.org/geos/branches/3.3@3467 5242fede-7e19-0410-aef8-94bd7d2200fb --- include/geos/platform.h.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/geos/platform.h.in b/include/geos/platform.h.in index 77ce9f79..effcdb5d 100644 --- a/include/geos/platform.h.in +++ b/include/geos/platform.h.in @@ -95,6 +95,9 @@ extern "C" // Hack for OS/X 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 +# define ISNAN(x) (::isnan(x)) # endif #endif -- 2.11.4.GIT