Skip to content

Commit

Permalink
libgeos#650 isnan workaround OS detection missing NetBSD, DragonFly, …
Browse files Browse the repository at this point in the history
…Sun nuance

git-svn-id: http://svn.osgeo.org/geos/trunk@3902 5242fede-7e19-0410-aef8-94bd7d2200fb
  • Loading branch information
robe2 committed Aug 21, 2013
1 parent 78f752a commit c49f3fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/geos/platform.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ extern "C"
# 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
Expand Down

0 comments on commit c49f3fe

Please sign in to comment.