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++/patches | |
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++/patches')
-rw-r--r-- | math/blitz++/patches/patch-ab | 13 | ||||
-rw-r--r-- | math/blitz++/patches/patch-ac | 13 |
2 files changed, 26 insertions, 0 deletions
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 |