Files
pkgsrc-ng/math/kcalc/patches/patch-knumber_knumber_float.cpp
2013-09-26 17:14:40 +02:00

16 lines
459 B
C++

$NetBSD: patch-knumber_knumber_float.cpp,v 1.1 2013/04/03 10:52:24 markd Exp $
use namespace std for isinf() and isnan()
--- knumber/knumber_float.cpp.orig 2013-03-01 07:05:02.000000000 +0000
+++ knumber/knumber_float.cpp
@@ -25,6 +25,8 @@ along with this program. If not, see <h
#include <QDebug>
#include <cmath>
+using namespace std;
+
// NOTE: these assume IEEE floats..
#ifndef HAVE_FUNC_ISINF
#define isinf(x) ((x) != 0.0 && (x) + (x) == (x))