[toolchain] fix powerpc toolchain build failure on x86_64 hosts
[openwrt.git] / toolchain / gcc / patches / 4.2.4 / 304-index_macro.patch
1 Index: gcc-4.2.3/libstdc++-v3/include/ext/rope
2 ===================================================================
3 --- gcc-4.2.3.orig/libstdc++-v3/include/ext/rope 2006-10-17 13:56:21.000000000 +0200
4 +++ gcc-4.2.3/libstdc++-v3/include/ext/rope 2008-05-21 13:45:50.017288293 +0200
5 @@ -58,6 +58,9 @@
6 #include <bits/allocator.h>
7 #include <ext/hash_fun.h>
8
9 +/* cope w/ index defined as macro, SuSv3 proposal */
10 +#undef index
11 +
12 # ifdef __GC
13 # define __GC_CONST const
14 # else
15 Index: gcc-4.2.3/libstdc++-v3/include/ext/ropeimpl.h
16 ===================================================================
17 --- gcc-4.2.3.orig/libstdc++-v3/include/ext/ropeimpl.h 2006-10-17 13:56:21.000000000 +0200
18 +++ gcc-4.2.3/libstdc++-v3/include/ext/ropeimpl.h 2008-05-21 13:45:50.017288293 +0200
19 @@ -54,6 +54,9 @@
20 #include <ext/memory> // For uninitialized_copy_n
21 #include <ext/numeric> // For power
22
23 +/* cope w/ index defined as macro, SuSv3 proposal */
24 +#undef index
25 +
26 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
27
28 using std::size_t;
This page took 0.050514 seconds and 5 git commands to generate.