summaryrefslogtreecommitdiff
path: root/math/kcalc/patches
diff options
context:
space:
mode:
Diffstat (limited to 'math/kcalc/patches')
-rw-r--r--math/kcalc/patches/patch-CMakeLists.txt4
-rw-r--r--math/kcalc/patches/patch-knumber_knumber_float.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/math/kcalc/patches/patch-CMakeLists.txt b/math/kcalc/patches/patch-CMakeLists.txt
index 9a98ee0945b..c500da324c2 100644
--- a/math/kcalc/patches/patch-CMakeLists.txt
+++ b/math/kcalc/patches/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2013/04/03 10:52:24 markd Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2013/11/07 11:59:59 markd Exp $
use mpfr (alternate code doesnt build on BSD)
@@ -12,5 +12,5 @@ use mpfr (alternate code doesnt build on BSD)
+add_definitions (-DKNUMBER_USE_MPFR)
+
include(CheckTypeSize)
- include(CheckFunctionExists)
include(CheckIncludeFiles)
+
diff --git a/math/kcalc/patches/patch-knumber_knumber_float.cpp b/math/kcalc/patches/patch-knumber_knumber_float.cpp
index 2005cec6fb1..ad4a2cb7fbd 100644
--- a/math/kcalc/patches/patch-knumber_knumber_float.cpp
+++ b/math/kcalc/patches/patch-knumber_knumber_float.cpp
@@ -1,4 +1,4 @@
-$NetBSD: patch-knumber_knumber_float.cpp,v 1.1 2013/04/03 10:52:24 markd Exp $
+$NetBSD: patch-knumber_knumber_float.cpp,v 1.2 2013/11/07 11:59:59 markd Exp $
use namespace std for isinf() and isnan()
@@ -6,10 +6,10 @@ use namespace std for isinf() and isnan()
+++ knumber/knumber_float.cpp
@@ -25,6 +25,8 @@ along with this program. If not, see <h
#include <QDebug>
- #include <cmath>
+ #include <math.h>
+using namespace std;
+
// NOTE: these assume IEEE floats..
- #ifndef HAVE_FUNC_ISINF
+ #ifndef isinf
#define isinf(x) ((x) != 0.0 && (x) + (x) == (x))