patches/gcc/4.1.2/170-index_macro.patch
changeset 747 d3e603e7c17c
parent 13 068dce39f687
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.1.2/170-index_macro.patch	Mon Jul 28 21:32:33 2008 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +--- gcc-4.1.2.orig/libstdc++-v3/include/ext/rope	2005-08-17 04:28:44.000000000 +0200
     1.5 ++++ gcc-4.1.2/libstdc++-v3/include/ext/rope	2007-03-04 23:34:08.000000000 +0100
     1.6 +@@ -57,6 +57,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.2.orig/libstdc++-v3/include/ext/ropeimpl.h	2005-08-17 04:28:44.000000000 +0200
    1.17 ++++ gcc-4.1.2/libstdc++-v3/include/ext/ropeimpl.h	2007-03-04 23:34:08.000000000 +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 + namespace __gnu_cxx
    1.26 + {
    1.27 +   using std::size_t;