From: | "Jonathan Callen (abcd)" <abcd@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in kde-base/kalgebra/files: kalgebra-4.3.2-solaris-graph2d.patch |
Date: | Tue, 22 Dec 2009 22:57:59 |
Message-Id: | E1NNDfw-0001PY-4F@stork.gentoo.org |
1 | abcd 09/12/22 22:57:56 |
2 | |
3 | Added: kalgebra-4.3.2-solaris-graph2d.patch |
4 | Log: |
5 | Pull in changes from overlay and patch for prefix support (Solaris) |
6 | (Portage version: -svn/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 kde-base/kalgebra/files/kalgebra-4.3.2-solaris-graph2d.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kalgebra/files/kalgebra-4.3.2-solaris-graph2d.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kalgebra/files/kalgebra-4.3.2-solaris-graph2d.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: kalgebra-4.3.2-solaris-graph2d.patch |
15 | =================================================================== |
16 | Desc: Fix missing isinf() for Solaris (same way as for kcalc). |
17 | Author: Heiko Przybyl <zuxez@××××××××××××.de> |
18 | --- kalgebra-4.3.2/kalgebra/src/graph2d.cpp.orig 2009-10-16 15:31:29.804959916 +0200 |
19 | +++ kalgebra-4.3.2/kalgebra/src/graph2d.cpp 2009-10-16 15:35:36.879338408 +0200 |
20 | @@ -38,6 +38,17 @@ |
21 | #include "analitza.h" |
22 | #include "functionsmodel.h" |
23 | |
24 | +// Stolen from kcalc. |
25 | +#if defined(Q_OS_SOLARIS) |
26 | +// Strictly by the standard, ininf() is a c99-ism which |
27 | +// is unavailable in C++. The IEEE FP headers provide |
28 | +// a function with similar functionality, so use that instead. |
29 | +// However, !finite(a) == isinf(a) || isnan(a), so it's |
30 | +// not 100% correct. |
31 | +#include <ieeefp.h> |
32 | +#define isinf(a) !finite(a) |
33 | +#endif |
34 | + |
35 | // #define DEBUG_GRAPH |
36 | |
37 | using namespace std; |