diff options
Diffstat (limited to 'patches/gcc-7-20180201/0302-c99-snprintf.patch')
-rw-r--r-- | patches/gcc-7-20180201/0302-c99-snprintf.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/gcc-7-20180201/0302-c99-snprintf.patch b/patches/gcc-7-20180201/0302-c99-snprintf.patch new file mode 100644 index 0000000..7ea8a91 --- /dev/null +++ b/patches/gcc-7-20180201/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 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 |