patches/gcc/4.3.1/330-index_macro.patch
changeset 747 d3e603e7c17c
parent 746 b150d6f590fc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.1/330-index_macro.patch	Mon Jul 28 21:32:33 2008 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/uclibc/90_all_304-index_macro.patch
     1.5 +diff -durN gcc-4.3.1.orig/libstdc++-v3/include/ext/rope gcc-4.3.1/libstdc++-v3/include/ext/rope
     1.6 +--- gcc-4.3.1.orig/libstdc++-v3/include/ext/rope	2008-01-31 19:44:55.000000000 +0100
     1.7 ++++ gcc-4.3.1/libstdc++-v3/include/ext/rope	2008-06-10 14:59:02.000000000 +0200
     1.8 +@@ -59,6 +59,9 @@
     1.9 + #include <bits/gthr.h>
    1.10 + #include <tr1/functional>
    1.11 + 
    1.12 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.13 ++#undef index
    1.14 ++
    1.15 + # ifdef __GC
    1.16 + #   define __GC_CONST const
    1.17 + # else
    1.18 +diff -durN gcc-4.3.1.orig/libstdc++-v3/include/ext/ropeimpl.h gcc-4.3.1/libstdc++-v3/include/ext/ropeimpl.h
    1.19 +--- gcc-4.3.1.orig/libstdc++-v3/include/ext/ropeimpl.h	2007-05-04 17:06:46.000000000 +0200
    1.20 ++++ gcc-4.3.1/libstdc++-v3/include/ext/ropeimpl.h	2008-06-10 14:59:02.000000000 +0200
    1.21 +@@ -54,6 +54,9 @@
    1.22 + #include <ext/memory> // For uninitialized_copy_n
    1.23 + #include <ext/numeric> // For power
    1.24 + 
    1.25 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.26 ++#undef index
    1.27 ++
    1.28 + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    1.29 + 
    1.30 +   using std::size_t;