patches/gcc/4.4.7/350-index_macro.patch
changeset 2944 8bddd94e068b
parent 2406 95e0c248d257
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.7/350-index_macro.patch	Fri Mar 23 01:36:42 2012 -0700
     1.3 @@ -0,0 +1,30 @@
     1.4 +-= BEGIN original header =-
     1.5 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/uclibc/90_all_304-index_macro.patch
     1.6 +-= END original header =-
     1.7 +
     1.8 +diff -durN gcc-4.4.5.orig/libstdc++-v3/include/ext/rope gcc-4.4.5/libstdc++-v3/include/ext/rope
     1.9 +--- gcc-4.4.5.orig/libstdc++-v3/include/ext/rope	2009-04-10 01:23:07.000000000 +0200
    1.10 ++++ gcc-4.4.5/libstdc++-v3/include/ext/rope	2010-10-09 23:12:51.000000000 +0200
    1.11 +@@ -54,6 +54,9 @@
    1.12 + #include <bits/gthr.h>
    1.13 + #include <tr1/functional>
    1.14 + 
    1.15 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.16 ++#undef index
    1.17 ++
    1.18 + # ifdef __GC
    1.19 + #   define __GC_CONST const
    1.20 + # else
    1.21 +diff -durN gcc-4.4.5.orig/libstdc++-v3/include/ext/ropeimpl.h gcc-4.4.5/libstdc++-v3/include/ext/ropeimpl.h
    1.22 +--- gcc-4.4.5.orig/libstdc++-v3/include/ext/ropeimpl.h	2009-04-10 01:23:07.000000000 +0200
    1.23 ++++ gcc-4.4.5/libstdc++-v3/include/ext/ropeimpl.h	2010-10-09 23:12:51.000000000 +0200
    1.24 +@@ -49,6 +49,9 @@
    1.25 + #include <ext/memory> // For uninitialized_copy_n
    1.26 + #include <ext/numeric> // For power
    1.27 + 
    1.28 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.29 ++#undef index
    1.30 ++
    1.31 + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    1.32 + 
    1.33 +   using std::size_t;