patches/gcc/4.4.4/350-index_macro.patch
changeset 1953 a93af06e180d
child 2148 ada9128c98b8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.4/350-index_macro.patch	Sun May 16 19:41:53 2010 +0200
     1.3 @@ -0,0 +1,34 @@
     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 +
    1.12 +diff -durN gcc-4.4.4.orig/libstdc++-v3/include/ext/rope gcc-4.4.4/libstdc++-v3/include/ext/rope
    1.13 +--- gcc-4.4.4.orig/libstdc++-v3/include/ext/rope	2009-04-10 01:23:07.000000000 +0200
    1.14 ++++ gcc-4.4.4/libstdc++-v3/include/ext/rope	2010-05-16 19:37:47.000000000 +0200
    1.15 +@@ -54,6 +54,9 @@
    1.16 + #include <bits/gthr.h>
    1.17 + #include <tr1/functional>
    1.18 + 
    1.19 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.20 ++#undef index
    1.21 ++
    1.22 + # ifdef __GC
    1.23 + #   define __GC_CONST const
    1.24 + # else
    1.25 +diff -durN gcc-4.4.4.orig/libstdc++-v3/include/ext/ropeimpl.h gcc-4.4.4/libstdc++-v3/include/ext/ropeimpl.h
    1.26 +--- gcc-4.4.4.orig/libstdc++-v3/include/ext/ropeimpl.h	2009-04-10 01:23:07.000000000 +0200
    1.27 ++++ gcc-4.4.4/libstdc++-v3/include/ext/ropeimpl.h	2010-05-16 19:37:47.000000000 +0200
    1.28 +@@ -49,6 +49,9 @@
    1.29 + #include <ext/memory> // For uninitialized_copy_n
    1.30 + #include <ext/numeric> // For power
    1.31 + 
    1.32 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.33 ++#undef index
    1.34 ++
    1.35 + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    1.36 + 
    1.37 +   using std::size_t;