diff options
author | 2012-11-04 04:31:47 +0000 | |
---|---|---|
committer | 2012-11-04 04:31:47 +0000 | |
commit | 97d90dfbabeaddc54cdcf63ad5a31a02be7659ae (patch) | |
tree | 713de94e709b2bfb8b760572724b0556a54aa89e /games-engines/scummvm-tools/files | |
parent | Fix to use of unsupported themes in building docs applied wrt Bug #423963, pa... (diff) | |
download | gentoo-2-97d90dfbabeaddc54cdcf63ad5a31a02be7659ae.tar.gz gentoo-2-97d90dfbabeaddc54cdcf63ad5a31a02be7659ae.tar.bz2 gentoo-2-97d90dfbabeaddc54cdcf63ad5a31a02be7659ae.zip |
add upstream patch to support building against latest boost (bug #422769)
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'games-engines/scummvm-tools/files')
-rw-r--r-- | games-engines/scummvm-tools/files/scummvm-tools-1.4.0-boost.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-engines/scummvm-tools/files/scummvm-tools-1.4.0-boost.patch b/games-engines/scummvm-tools/files/scummvm-tools-1.4.0-boost.patch new file mode 100644 index 000000000000..d492e194d3c5 --- /dev/null +++ b/games-engines/scummvm-tools/files/scummvm-tools-1.4.0-boost.patch @@ -0,0 +1,53 @@ +From 36cb68919303bc2b874a5faa879e269a35874eff Mon Sep 17 00:00:00 2001 +From: Johannes Schickel <lordhoto@scummvm.org> +Date: Sat, 3 Nov 2012 21:57:08 +0100 +Subject: [PATCH] TOOLS: Fix decompiler compilation with gcc 4.7. + +--- + decompiler/refcounted.h | 10 ++-------- + 1 file changed, 2 insertions(+), 8 deletions(-) + +diff --git a/decompiler/refcounted.h b/decompiler/refcounted.h +index a496ff7..f4d9020 100644 +--- a/decompiler/refcounted.h ++++ b/decompiler/refcounted.h +@@ -25,10 +25,8 @@ + + class RefCounted; + +-namespace boost { + inline void intrusive_ptr_add_ref(RefCounted *p); + inline void intrusive_ptr_release(RefCounted *p); +-} // End of namespace boost + + /** + * Provides a base implementation of reference counting for use with boost::intrusive_ptr. +@@ -36,16 +34,14 @@ + class RefCounted { + private: + long _refCount; ///< Reference count used for boost::intrusive_ptr. +- friend void ::boost::intrusive_ptr_add_ref(RefCounted *p); ///< Allow access by reference counting methods in boost namespace. +- friend void ::boost::intrusive_ptr_release(RefCounted *p); ///< Allow access by reference counting methods in boost namespace. ++ friend void ::intrusive_ptr_add_ref(RefCounted *p); ///< Allow access by reference counting methods. ++ friend void ::intrusive_ptr_release(RefCounted *p); ///< Allow access by reference counting methods. + + protected: + RefCounted() : _refCount(0) { } + virtual ~RefCounted() { } + }; + +-namespace boost { +- + /** + * Add a reference to a pointer. + */ +@@ -61,6 +57,4 @@ inline void intrusive_ptr_release(RefCounted *p) { + delete p; + } + +-} // End of namespace boost +- + #endif +-- +1.7.10 + |