summaryrefslogtreecommitdiffstats
path: root/patches/gcc-4.9.2/0302-c99-snprintf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gcc-4.9.2/0302-c99-snprintf.patch')
-rw-r--r--patches/gcc-4.9.2/0302-c99-snprintf.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/gcc-4.9.2/0302-c99-snprintf.patch b/patches/gcc-4.9.2/0302-c99-snprintf.patch
new file mode 100644
index 0000000..0258f31
--- /dev/null
+++ b/patches/gcc-4.9.2/0302-c99-snprintf.patch
@@ -0,0 +1,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 6043b3de2bf3..54772bccc0c9 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