diff options
author | Johannes Huber <johu@gentoo.org> | 2012-05-03 20:08:11 +0000 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2012-05-03 20:08:11 +0000 |
commit | 5927f5c54422bdd7e485d04e5a5f7d18663ee66f (patch) | |
tree | 23ce069db9e32e9974c6b94cfa73af651ada1e7f /kde-base/analitza/files/analitza-solaris-graph2d.patch | |
parent | Mask >ghc-7 on Tiger and Leopard (diff) | |
download | historical-5927f5c54422bdd7e485d04e5a5f7d18663ee66f.tar.gz historical-5927f5c54422bdd7e485d04e5a5f7d18663ee66f.tar.bz2 historical-5927f5c54422bdd7e485d04e5a5f7d18663ee66f.zip |
Version bump KDE SC 4.8.3
Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64
Diffstat (limited to 'kde-base/analitza/files/analitza-solaris-graph2d.patch')
-rw-r--r-- | kde-base/analitza/files/analitza-solaris-graph2d.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kde-base/analitza/files/analitza-solaris-graph2d.patch b/kde-base/analitza/files/analitza-solaris-graph2d.patch new file mode 100644 index 000000000000..5bbf3806ac80 --- /dev/null +++ b/kde-base/analitza/files/analitza-solaris-graph2d.patch @@ -0,0 +1,21 @@ +--- analiyzagui/graph2d.cpp ++++ analitzagui/graph2d.cpp +@@ -33,6 +33,18 @@ + + #include <analitza/analyzer.h> + #include "functionsmodel.h" ++ ++// Stolen from kcalc. ++#if defined(Q_OS_SOLARIS) ++// Strictly by the standard, ininf() is a c99-ism which ++// is unavailable in C++. The IEEE FP headers provide ++// a function with similar functionality, so use that instead. ++// However, !finite(a) == isinf(a) || isnan(a), so it's ++// not 100% correct. ++#include <ieeefp.h> ++#define isinf(a) !finite(a) ++#endif ++ + #include "functionutils.h" + #include "functionspainter.h" + #include <cmath> |