summaryrefslogtreecommitdiffstats
path: root/patches/gcc-5.4.0/0302-c99-snprintf.patch
blob: 7ea8a9151fcb0dd40b4b5874d43a87ee2d729da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Robert Schwebel <r.schwebel@pengutronix.de>
Date: Tue, 1 Nov 2011 18:25:07 +0100
Subject: [PATCH] c99 snprintf

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(-)

diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio
index d1c958b63834..01d9b80fd07f 100644
--- a/libstdc++-v3/include/c_global/cstdio
+++ b/libstdc++-v3/include/c_global/cstdio
@@ -146,7 +146,7 @@ namespace std
   using ::vsprintf;
 } // namespace
 
-#if _GLIBCXX_USE_C99
+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
 
 #undef snprintf
 #undef vfscanf