From: | "Alexey Shvetsov (alexxy)" <alexxy@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in kde-base/kalgebra/files: kalgebra-4.5.73-solaris-graph2d.patch |
Date: | Wed, 26 Jan 2011 20:43:48 |
Message-Id: | 20110126202903.7B6A620054@flycatcher.gentoo.org |
1 | alexxy 11/01/26 20:29:03 |
2 | |
3 | Added: kalgebra-4.5.73-solaris-graph2d.patch |
4 | Log: |
5 | [kde-base] Add KDE SC 4.6.0 |
6 | |
7 | (Portage version: 2.2.0_alpha19_p2/cvs/Linux x86_64, RepoMan options: --force) |
8 | |
9 | Revision Changes Path |
10 | 1.1 kde-base/kalgebra/files/kalgebra-4.5.73-solaris-graph2d.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kalgebra/files/kalgebra-4.5.73-solaris-graph2d.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kalgebra/files/kalgebra-4.5.73-solaris-graph2d.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: kalgebra-4.5.73-solaris-graph2d.patch |
16 | =================================================================== |
17 | Desc: Fix missing isinf() for Solaris (same way as for kcalc). |
18 | Author: Heiko Przybyl <zuxez@××××××××××××.de> |
19 | --- kalgebra-4.3.2/kalgebra/analitzagui/graph2d.cpp.orig 2009-10-16 15:31:29.804959916 +0200 |
20 | +++ kalgebra-4.3.2/kalgebra/analitzagui/graph2d.cpp 2009-10-16 15:35:36.879338408 +0200 |
21 | @@ -38,6 +38,17 @@ |
22 | #include "analitza.h" |
23 | #include "functionsmodel.h" |
24 | |
25 | +// Stolen from kcalc. |
26 | +#if defined(Q_OS_SOLARIS) |
27 | +// Strictly by the standard, ininf() is a c99-ism which |
28 | +// is unavailable in C++. The IEEE FP headers provide |
29 | +// a function with similar functionality, so use that instead. |
30 | +// However, !finite(a) == isinf(a) || isnan(a), so it's |
31 | +// not 100% correct. |
32 | +#include <ieeefp.h> |
33 | +#define isinf(a) !finite(a) |
34 | +#endif |
35 | + |
36 | // #define DEBUG_GRAPH |
37 | |
38 | using namespace std; |