| 1 | Descriptionscip-debian debian avifile 1:0.7.48~20090503.ds-32 avifile/patches/`gcc45.patch`#Description.: Fix FTBFS with GCC4.5. |
| 2 | This patch fixes FTBFS with GCC4.5/5.0. |
| 3 | Authorscip-debian debian avifile 1:0.7.48~20090503.ds-32 avifile/patches/`gcc45.patch`#Author.: Alessio Treglia <[email protected]> |
| 4 | Martin Michlmayr <[email protected]> |
| 5 | Forwardedscip-debian debian avifile 1:0.7.48~20090503.ds-32 avifile/patches/`gcc45.patch`#Forwarded.: https://sourceforge.net/support/tracker.php?aid=3298182 |
| 6 | --- |
| 7 | lib/common/avm_output.cpp | 8 ++++++++ |
| 8 | 1 file changed, 8 insertions(+) |
| 9 | |
| 10 | Index: avifile-0.7.48~20090503.ds/lib/common/avm_output.cppscip-debian debian avifile 1:0.7.48~20090503.ds-32 avifile/upstream/`avifile-0.7.48~20090503.ds/lib/common/avm_output.cpp`: |
| 11 | =================================================================== |
| 12 | --- avifile-0.7.48~20090503.ds.orig/lib/common/avm_output.cppscip-debian debian avifile 1:0.7.48~20090503.ds-32 avifile/upstream/`avifile-0.7.48~20090503.ds.orig/lib/common/avm_output.cpp`: |
| 13 | +++ avifile-0.7.48~20090503.ds/lib/common/avm_output.cpp |
| 14 | @@ -14,7 +14,11 @@ avm::CPU_Info freq; // will be initializ |
| 15 | |
| 16 | AVM_BEGIN_NAMESPACE; |
| 17 | |
| 18 | +#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || __GNUC__ >= 5 |
| 19 | +typename AvmOutput::AvmOutput* AvmOutput::m_pSelf = 0; |
| 20 | +#else |
| 21 | AvmOutput::AvmOutput* AvmOutput::m_pSelf = 0; |
| 22 | +#endif |
| 23 | int AvmOutput::m_iLevel = 0; // debug level |
| 24 | |
| 25 | struct AvmOutput::AvmOutputPrivate |
| 26 | @@ -55,7 +59,11 @@ void AvmOutput::createAvmOutput() |
| 27 | new AvmOutput(); |
| 28 | } |
| 29 | |
| 30 | +#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || __GNUC__ >= 5 |
| 31 | +typename AvmOutput::AvmOutput* AvmOutput::singleton() |
| 32 | +#else |
| 33 | AvmOutput::AvmOutput* AvmOutput::singleton() |
| 34 | +#endif |
| 35 | { |
| 36 | assert(m_pSelf != 0); |
| 37 | return m_pSelf; |