[geos] 02/03: Add patch to use std::isnan() in platform.h too.
Bas Couwenberg
sebastic at debian.org
Thu Jul 14 10:20:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository geos.
commit c46b76526287d86c036716d766be7296d118b999
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Thu Jul 14 11:48:53 2016 +0200
Add patch to use std::isnan() in platform.h too.
---
debian/changelog | 2 ++
debian/patches/gcc6-isnan.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
3 files changed, 20 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 806a26e..a755b95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ geos (3.5.0-4) UNRELEASED; urgency=medium
* Bump Standards-Version to 3.9.8, no changes.
* Add patch to fix isnan() detection in configure.
+ * Add patch to use std::isnan() in platform.h too.
+ (closes: #831177)
-- Bas Couwenberg <sebastic at debian.org> Fri, 15 Apr 2016 18:13:48 +0200
diff --git a/debian/patches/gcc6-isnan.patch b/debian/patches/gcc6-isnan.patch
new file mode 100644
index 0000000..68231a6
--- /dev/null
+++ b/debian/patches/gcc6-isnan.patch
@@ -0,0 +1,17 @@
+Description: Use std::isnan for C++.
+ Based on: https://trac.osgeo.org/geos/changeset/4169/
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/831177
+Bug: https://trac.osgeo.org/geos/ticket/784
+
+--- a/include/geos/platform.h.in
++++ b/include/geos/platform.h.in
+@@ -86,7 +86,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)
diff --git a/debian/patches/series b/debian/patches/series
index 66ba8ab..81d8d17 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ ruby2
disable-docygen-html-timestamp
spelling-errors.patch
look-for-isnan-in-std-namespace.patch
+gcc6-isnan.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/geos.git
More information about the Pkg-grass-devel
mailing list