node-spatialite
node-spatialite copied to clipboard
Does not compile on ubuntu
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial
I have compiled the module only when I changed this file:
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)
Thank you @kvpster, that solved my exact same problem.