patches/gcc/4.3.5/290-index_macro.patch
changeset 2124 5dd0b83ae528
parent 1461 35b30f8fb307
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.5/290-index_macro.patch	Sun Sep 19 18:37:18 2010 +0200
     1.3 @@ -0,0 +1,32 @@
     1.4 +Original patch from: ../4.3.2/290-index_macro.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/uclibc/90_all_304-index_macro.patch
     1.8 +-= END original header =-
     1.9 +
    1.10 +diff -durN gcc-4.3.3.orig/libstdc++-v3/include/ext/rope gcc-4.3.3/libstdc++-v3/include/ext/rope
    1.11 +--- gcc-4.3.3.orig/libstdc++-v3/include/ext/rope	2008-07-15 12:14:51.000000000 +0200
    1.12 ++++ gcc-4.3.3/libstdc++-v3/include/ext/rope	2009-01-27 22:25:41.000000000 +0100
    1.13 +@@ -59,6 +59,9 @@
    1.14 + #include <bits/gthr.h>
    1.15 + #include <tr1/functional>
    1.16 + 
    1.17 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.18 ++#undef index
    1.19 ++
    1.20 + # ifdef __GC
    1.21 + #   define __GC_CONST const
    1.22 + # else
    1.23 +diff -durN gcc-4.3.3.orig/libstdc++-v3/include/ext/ropeimpl.h gcc-4.3.3/libstdc++-v3/include/ext/ropeimpl.h
    1.24 +--- gcc-4.3.3.orig/libstdc++-v3/include/ext/ropeimpl.h	2007-05-04 17:06:46.000000000 +0200
    1.25 ++++ gcc-4.3.3/libstdc++-v3/include/ext/ropeimpl.h	2009-01-27 22:25:41.000000000 +0100
    1.26 +@@ -54,6 +54,9 @@
    1.27 + #include <ext/memory> // For uninitialized_copy_n
    1.28 + #include <ext/numeric> // For power
    1.29 + 
    1.30 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.31 ++#undef index
    1.32 ++
    1.33 + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    1.34 + 
    1.35 +   using std::size_t;