diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2bb8124b44..b7b5afcf63f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-09-01 Fred Fish + + * fix-header.c (write_rbrac): Add putc and getc to list of + functions to protect against prior definition as a macro. + 2000-09-01 Joseph S. Myers * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE. diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 3dadb0e8ab9..25c75bb99e4 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -778,6 +778,8 @@ 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") + || !strcmp (fn->fname, "putc") + || !strcmp (fn->fname, "getc") || !strcmp (fn->fname, "vprintf") || !strcmp (fn->fname, "vfprintf") || !strcmp (fn->fname, "vsprintf")