[geos-devel] 3.4.1, stray patch from pkgsrc
Paragon Corporation
lr at pcorp.us
Sat Aug 17 19:11:26 PDT 2013
You want to submit a ticket for this with patch would be welcome.
-----Original Message-----
From: geos-devel-bounces at lists.osgeo.org
[mailto:geos-devel-bounces at lists.osgeo.org] On Behalf Of Greg Troxel
Sent: Saturday, August 17, 2013 9:10 PM
To: geos-devel at lists.osgeo.org
Subject: [geos-devel] 3.4.1, stray patch from pkgsrc
pkgsrc is carrying the following patch. It strikes me that probably there
should be a configure-time feature test instead.
$NetBSD: patch-include-geos-platform.h.in,v 1.4 2012/03/12 09:46:06 fhajny
Exp $
Fix isnan definition on NetBSD, DragonFly and SunOS platforms.
--- include/geos/platform.h.in.orig 2013-08-11 04:23:47.000000000 +0000
+++ include/geos/platform.h.in
@@ -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
More information about the geos-devel
mailing list