pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/blitz++ When using GCC and libstdc++ supports C99...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6cdef1224c49
branches:  trunk
changeset: 507455:6cdef1224c49
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 02 14:10:45 2006 +0000

description:
When using GCC and libstdc++ supports C99 macros, use isnan from
namespace std.

diffstat:

 math/blitz++/distinfo         |   4 +++-
 math/blitz++/patches/patch-ab |  13 +++++++++++++
 math/blitz++/patches/patch-ac |  13 +++++++++++++
 3 files changed, 29 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r db443f745405 -r 6cdef1224c49 math/blitz++/distinfo
--- a/math/blitz++/distinfo     Thu Feb 02 14:03:49 2006 +0000
+++ b/math/blitz++/distinfo     Thu Feb 02 14:10:45 2006 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/09/05 14:06:59 adam Exp $
+$NetBSD: distinfo,v 1.5 2006/02/02 14:10:45 joerg Exp $
 
 SHA1 (blitz-0.8.tar.gz) = e1396cdfdbf4ec93bfc69ca581b8e9a64d745ca1
 RMD160 (blitz-0.8.tar.gz) = 95b8eb6ee8a99f0632a0c510eafd0051053c1e0e
 Size (blitz-0.8.tar.gz) = 2729167 bytes
 SHA1 (patch-aa) = deb437da8741a87c18f56883a880a03a6e94c84d
+SHA1 (patch-ab) = 30b268204142b5f8a63ca7d3273d323d82e82077
+SHA1 (patch-ac) = bd1622d79769cf0b99ebbcbe614d86fda728ff1b
diff -r db443f745405 -r 6cdef1224c49 math/blitz++/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/blitz++/patches/patch-ab     Thu Feb 02 14:10:45 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2006/02/02 14:10:45 joerg Exp $
+
+--- blitz/funcs.h.orig 2006-02-02 14:05:27.000000000 +0000
++++ blitz/funcs.h
+@@ -583,6 +583,8 @@ struct Fn_isnan {
+         // Some platforms define isnan as a macro, which causes the
+         // BZ_IEEEMATHFN_SCOPE macro to break.
+         return isnan(a); 
++#elif defined(_GLIBCXX_USE_C99_MATH) && !defined(_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC)
++        return BZ_MATHFN_SCOPE(isnan)(a);
+ #else
+         return BZ_IEEEMATHFN_SCOPE(isnan)(a);
+ #endif
diff -r db443f745405 -r 6cdef1224c49 math/blitz++/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/blitz++/patches/patch-ac     Thu Feb 02 14:10:45 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.3 2006/02/02 14:10:45 joerg Exp $
+
+--- blitz/mathfunc.h.orig      2006-02-02 14:06:44.000000000 +0000
++++ blitz/mathfunc.h
+@@ -1545,6 +1545,8 @@ public:
+         // Some platforms define isnan as a macro, which causes the
+         // BZ_IEEEMATHFN_SCOPE macro to break.
+         return isnan(x);
++#elif defined(_GLIBCXX_USE_C99_MATH) && !defined(_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC)
++      return BZ_MATHFN_SCOPE(isnan)(x);
+ #else
+         return BZ_IEEEMATHFN_SCOPE(isnan)(x);
+ #endif



Home | Main Index | Thread Index | Old Index