summaryrefslogtreecommitdiffstats
path: root/patches/gcc-linaro-4.5-2011.02-0/0006-c99-snprintf.patch
blob: d39e7d3f6414198d48e064643c8e3962dd982bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This patch was taken from uclibc.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>

---
 libstdc++-v3/include/c_global/cstdio |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: gcc-4.5.1/libstdc++-v3/include/c_global/cstdio
===================================================================
--- gcc-4.5.1.orig/libstdc++-v3/include/c_global/cstdio
+++ gcc-4.5.1/libstdc++-v3/include/c_global/cstdio
@@ -139,7 +139,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
 
 _GLIBCXX_END_NAMESPACE
 
-#if _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
 
 #undef snprintf
 #undef vfscanf