aboutsummaryrefslogtreecommitdiffstats
path: root/math/kmplot
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2016-11-09 03:54:15 +0800
committerTobias C. Berner <tcberner@FreeBSD.org>2016-11-09 03:54:15 +0800
commit672cf591e994a63951b1c5f66428f0d81f714803 (patch)
tree8e05f4df8da502d108a354d5b3ec3b7a04c78155 /math/kmplot
parent12a17330d8ad2dddfcfca2fea0752f8f1ddfcc42 (diff)
downloadfreebsd-ports-gnome-672cf591e994a63951b1c5f66428f0d81f714803.tar.gz
freebsd-ports-gnome-672cf591e994a63951b1c5f66428f0d81f714803.tar.zst
freebsd-ports-gnome-672cf591e994a63951b1c5f66428f0d81f714803.zip
Fix build with newer gcc versions.
Add upstream patch [1] that uses * isnan() -> std::isnan() * isinf() -> std::isinf() This fixes compilation with gcc5. [1] https://quickgit.kde.org/?p=kmplot.git&a=commit&h=e903ca56ad26311fcaeb650acf96046c726fb809 PR: 213993 Reported by: Kenneth Salerno <kennethsalerno@yahoo.com> Approved by: rakuco (mentor) Obtained from: https://quickgit.kde.org/?p=kmplot.git&a=commit&h=e903ca56ad26311fcaeb650acf96046c726fb809
Diffstat (limited to 'math/kmplot')
-rw-r--r--math/kmplot/files/patch-git_e903ca549
1 files changed, 49 insertions, 0 deletions
diff --git a/math/kmplot/files/patch-git_e903ca5 b/math/kmplot/files/patch-git_e903ca5
new file mode 100644
index 000000000000..dce35edbf832
--- /dev/null
+++ b/math/kmplot/files/patch-git_e903ca5
@@ -0,0 +1,49 @@
+Backport of the the commit e903ca5 to old kmplot.
+
+From e903ca56ad26311fcaeb650acf96046c726fb809 Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <aacid@kde.org>
+Date: Wed, 23 Mar 2016 20:56:55 +0100
+Subject: [PATCH] use std::isnan/isinf since we're including cmath
+
+--- kmplot/view.cpp.orig 2014-09-17 13:01:07 UTC
++++ kmplot/view.cpp
+@@ -477,7 +477,7 @@ QPointF View::toPixel( const QPointF & r
+ double x = pixel.x();
+ double y = pixel.y();
+
+- if ( isnan(x) )
++ if ( std::isnan(x) )
+ {
+ xclipflg = true;
+ x = pixelIfNaN.x();
+@@ -497,14 +497,14 @@ QPointF View::toPixel( const QPointF & r
+ }
+ else
+ {
+- if ( isinf(x) == -1 )
++ if ( std::isinf(x) == -1 )
+ x = 0;
+
+- else if ( isinf(x) == 1 )
++ else if ( std::isinf(x) == 1 )
+ x = m_clipRect.right();
+ }
+
+- if ( isnan(y) )
++ if ( std::isnan(y) )
+ {
+ yclipflg = true;
+ y = pixelIfNaN.y();
+@@ -524,10 +524,10 @@ QPointF View::toPixel( const QPointF & r
+ }
+ else
+ {
+- if ( isinf(y) == -1 )
++ if ( std::isinf(y) == -1 )
+ y = 0;
+
+- else if ( isinf(y) == 1 )
++ else if ( std::isinf(y) == 1 )
+ y = m_clipRect.bottom();
+ }
+