summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fix-header.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 3a08d9365f7..3d6c4dbc480 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -379,7 +379,10 @@ write_rbrac ()
/* In the case of memmove, protect in case the application
defines it as a macro before including the header. */
- if (!strcmp (fn->fname, "memmove"))
+ if (!strcmp (fn->fname, "memmove")
+ || !strcmp (fn->fname, "vprintf")
+ || !strcmp (fn->fname, "vfprintf")
+ || !strcmp (fn->fname, "vsprintf"))
macro_protect = 1;
if (macro_protect)