add patches to fixes gcc 4.2.x bugs:
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.2.3 / 302-c99-snprintf.patch
1 Index: gcc-4.2.3/libstdc++-v3/include/c_std/std_cstdio.h
2 ===================================================================
3 --- gcc-4.2.3.orig/libstdc++-v3/include/c_std/std_cstdio.h 2006-12-07 10:33:51.000000000 +0100
4 +++ gcc-4.2.3/libstdc++-v3/include/c_std/std_cstdio.h 2008-05-21 13:45:48.645288116 +0200
5 @@ -144,7 +144,7 @@
6
7 _GLIBCXX_END_NAMESPACE
8
9 -#if _GLIBCXX_USE_C99
10 +#if _GLIBCXX_USE_C99 || defined(__UCLIBC__)
11
12 #undef snprintf
13 #undef vfscanf