diff options
author | joerg <joerg@pkgsrc.org> | 2006-02-02 14:10:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-02-02 14:10:45 +0000 |
commit | b7a4a002b1656bcf51cd46eea6d31ec8c3b100c2 (patch) | |
tree | 8c49959216096b1902eecb00df104344b85fd712 /math/blitz++ | |
parent | 6945276b3f3137526de415acf3589db1f368898f (diff) | |
download | pkgsrc-b7a4a002b1656bcf51cd46eea6d31ec8c3b100c2.tar.gz |
When using GCC and libstdc++ supports C99 macros, use isnan from
namespace std.
Diffstat (limited to 'math/blitz++')
-rw-r--r-- | math/blitz++/distinfo | 4 | ||||
-rw-r--r-- | math/blitz++/patches/patch-ab | 13 | ||||
-rw-r--r-- | math/blitz++/patches/patch-ac | 13 |
3 files changed, 29 insertions, 1 deletions
diff --git a/math/blitz++/distinfo b/math/blitz++/distinfo index 92a5463ca77..f9e73a49a2b 100644 --- a/math/blitz++/distinfo +++ b/math/blitz++/distinfo @@ -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 --git a/math/blitz++/patches/patch-ab b/math/blitz++/patches/patch-ab new file mode 100644 index 00000000000..cf7463180f6 --- /dev/null +++ b/math/blitz++/patches/patch-ab @@ -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 --git a/math/blitz++/patches/patch-ac b/math/blitz++/patches/patch-ac new file mode 100644 index 00000000000..f401e942d7a --- /dev/null +++ b/math/blitz++/patches/patch-ac @@ -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 |