summaryrefslogtreecommitdiff
path: root/geography/geos/patches/patch-include-geos-platform.h.in
blob: 1738976c1ab2c8dfe1b1a0b8169d02e3196e1aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-include-geos-platform.h.in,v 1.1 2011/09/21 13:15:20 joerg Exp $

--- include/geos/platform.h.in.orig	2011-09-21 08:51:25.000000000 +0000
+++ include/geos/platform.h.in
@@ -91,7 +91,7 @@ extern "C"
 # elif defined(__MINGW32__)
 // sandro furieri: sanitizing MinGW32
 #  define ISNAN(x) (std::isnan(x))
-# elif defined(__OSX__) || defined(__APPLE__)
+# elif defined(__OSX__) || defined(__APPLE__) || defined(__NetBSD__)
    // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion.
    // It does leave a version in std.
 #  define ISNAN(x) (std::isnan(x))