diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2010-08-25 16:21:38 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2010-08-25 16:21:38 +0000 |
commit | 31bb6e9bcee4e507b4e386bdb35afbc8deda8b69 (patch) | |
tree | bcae06585bb4b47fe0ed9a02a8e18dcf2b7c7106 /dev-lang/gdl/files | |
parent | http://my.opera.com/desktopteam/blog/b9034 (diff) | |
download | gentoo-2-31bb6e9bcee4e507b4e386bdb35afbc8deda8b69.tar.gz gentoo-2-31bb6e9bcee4e507b4e386bdb35afbc8deda8b69.tar.bz2 gentoo-2-31bb6e9bcee4e507b4e386bdb35afbc8deda8b69.zip |
Fix build with GCC-4.5 wrt bug 334415. Thanks to Diego for report.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/gdl/files')
-rw-r--r-- | dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch b/dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch new file mode 100644 index 000000000000..845f2dff1bf1 --- /dev/null +++ b/dev-lang/gdl/files/gdl-0.9_rc4-gcc4.5.patch @@ -0,0 +1,24 @@ +Fix build with GCC-4.5 + +http://gnudatalanguage.cvs.sourceforge.net/viewvc/gnudatalanguage/gdl/src/math_utl.hpp?r1=1.4&r2=1.5&view=patch +http://bugs.gentoo.org/show_bug.cgi?id=334415 +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564994 + +--- src/math_utl.hpp ++++ src/math_utl.hpp +@@ -22,11 +22,12 @@ + + //#define ABS(xxx) (( xxx > -xxx)?(xxx):(-xxx)) + +-template< typename T> +-inline T abs( T a) { return (a>=T(0))?a:-a;} +- + namespace lib { + ++ // SA: needs to be inside a namespace for GCC 4.5 ++ template< typename T> ++ inline T abs( T a) { return (a>=T(0))?a:-a;} ++ + // int trans513(char *, int, int, int, DType); + // int transpose(char *, SizeT, SizeT [], SizeT, DType); + // int transpose_perm(char *, SizeT, SizeT [], SizeT, DType, long []); |