gcc: add llvm-gcc and llvm from trunk (does not successfully compile a target yet...
[openwrt.git] / toolchain / gcc / patches / llvm / 302-c99-snprintf.patch
diff --git a/toolchain/gcc/patches/llvm/302-c99-snprintf.patch b/toolchain/gcc/patches/llvm/302-c99-snprintf.patch
new file mode 100644 (file)
index 0000000..adde594
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libstdc++-v3/include/c_std/std_cstdio.h
++++ b/libstdc++-v3/include/c_std/std_cstdio.h
+@@ -144,7 +144,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
+ _GLIBCXX_END_NAMESPACE
+-#if _GLIBCXX_USE_C99
++#if _GLIBCXX_USE_C99 || defined(__UCLIBC__)
+ #undef snprintf
+ #undef vfscanf
This page took 0.025216 seconds and 4 git commands to generate.