[geos-devel] 3.4.1, stray patch from pkgsrc
Greg Troxel
gdt at ir.bbn.com
Sat Aug 17 18:09:31 PDT 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20130817/744f7061/attachment.pgp>
More information about the geos-devel
mailing list