From 6cd93723a4f4f4353da068d1e00050f613504a33 Mon Sep 17 00:00:00 2001 From: Xavier Ho Date: Tue, 21 Mar 2017 10:58:25 +1100 Subject: [PATCH] Added std::isnan(x) to compile on Ubuntu 16.04 LTS This resolves a compiler error trying to compile `node-spatialite` on Ubuntu 16.04. Patch credit in Issue #16. --- src/spatialite/deps/geos/config/linux/x64/geos/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spatialite/deps/geos/config/linux/x64/geos/platform.h b/src/spatialite/deps/geos/config/linux/x64/geos/platform.h index ed641c0..4752f97 100644 --- a/src/spatialite/deps/geos/config/linux/x64/geos/platform.h +++ b/src/spatialite/deps/geos/config/linux/x64/geos/platform.h @@ -85,7 +85,7 @@ extern "C" #endif #if defined(HAVE_ISNAN) -# define ISNAN(x) (isnan(x)) +# define ISNAN(x) (std::isnan(x)) #else # if defined(_MSC_VER) # define ISNAN(x) _isnan(x)