patches/gcc/4.2.0/200-index_macro.patch
changeset 1761 88020b2c3246
parent 111 2e16b9fc302d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.2.0/200-index_macro.patch	Tue Jan 12 19:24:03 2010 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +--- gcc-4.1.0/libstdc++-v3/include/ext/rope.mps	2006-03-24 01:49:51 +0100
     1.5 ++++ gcc-4.1.0/libstdc++-v3/include/ext/rope	2006-03-24 01:49:37 +0100
     1.6 +@@ -59,6 +59,9 @@
     1.7 + #include <bits/allocator.h>
     1.8 + #include <ext/hash_fun.h>
     1.9 + 
    1.10 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.11 ++#undef index
    1.12 ++
    1.13 + # ifdef __GC
    1.14 + #   define __GC_CONST const
    1.15 + # else
    1.16 +--- gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h.mps	2006-03-24 01:50:04 +0100
    1.17 ++++ gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h	2006-03-24 01:50:28 +0100
    1.18 +@@ -53,6 +53,9 @@
    1.19 + #include <ext/memory> // For uninitialized_copy_n
    1.20 + #include <ext/numeric> // For power
    1.21 + 
    1.22 ++/* cope w/ index defined as macro, SuSv3 proposal */
    1.23 ++#undef index
    1.24 ++
    1.25 + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
    1.26 +
    1.27 +   using std::size_t;