* [gentoo-commits] gentoo-x86 commit in kde-base/step/files: step-4.3.2-solaris.patch
@ 2009-12-23 1:45 Jonathan Callen (abcd)
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Callen (abcd) @ 2009-12-23 1:45 UTC (permalink / raw
To: gentoo-commits
abcd 09/12/23 01:45:16
Added: step-4.3.2-solaris.patch
Log:
Pull in changes from overlay; add patch for prefix support (Solaris)
(Portage version: -svn/cvs/Linux i686)
Revision Changes Path
1.1 kde-base/step/files/step-4.3.2-solaris.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/step/files/step-4.3.2-solaris.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/step/files/step-4.3.2-solaris.patch?rev=1.1&content-type=text/plain
Index: step-4.3.2-solaris.patch
===================================================================
Desc: Fix compilation on Solaris.
Author: Heiko Przybyl <zuxez@cs.tu-berlin.de>
--- step-4.3.2/step/stepcore/constraintsolver.cc.orig 2009-10-16 18:42:52.562521176 +0200
+++ step-4.3.2/step/stepcore/constraintsolver.cc 2009-10-16 18:44:15.447949305 +0200
@@ -21,4 +21,18 @@
#include <unsupported/Eigen/IterativeSolvers>
#include <cmath>
+
+// 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>
+namespace std {
+ inline int isinf(double a) { return !finite(a); }
+ inline int isfinite(double a) { return finite(a); }
+}
+#endif
using namespace Eigen;
--- step-4.3.2/step/stepcore/particle.cc.orig 2009-10-16 19:23:50.845435007 +0200
+++ step-4.3.2/step/stepcore/particle.cc 2009-10-16 19:24:33.425319075 +0200
@@ -22,6 +22,20 @@
#include <cmath>
#include <QtGlobal>
+// 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>
+namespace std {
+ inline int isinf(double a) { return !finite(a); }
+ inline int isfinite(double a) { return finite(a); }
+}
+#endif
+
namespace StepCore
{
--- step-4.3.2/step/stepcore/rigidbody.cc.orig 2009-10-16 19:24:57.664177635 +0200
+++ step-4.3.2/step/stepcore/rigidbody.cc 2009-10-16 19:25:08.616915717 +0200
@@ -21,6 +21,20 @@
#include <cstring>
#include <cmath>
+// 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>
+namespace std {
+ inline int isinf(double a) { return !finite(a); }
+ inline int isfinite(double a) { return finite(a); }
+}
+#endif
+
namespace StepCore
{
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in kde-base/step/files: step-4.3.2-solaris.patch
@ 2013-01-08 12:54 Michael Palimaka (kensington)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Palimaka (kensington) @ 2013-01-08 12:54 UTC (permalink / raw
To: gentoo-commits
kensington 13/01/08 12:54:50
Removed: step-4.3.2-solaris.patch
Log:
Remove unused patches.
(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-08 12:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08 12:54 [gentoo-commits] gentoo-x86 commit in kde-base/step/files: step-4.3.2-solaris.patch Michael Palimaka (kensington)
-- strict thread matches above, loose matches on Subject: below --
2009-12-23 1:45 Jonathan Callen (abcd)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox