fix-header.c (write_rbrac): Add putc and getc to list of functions to protect against...
authorFred Fish <fnf@be.com>
Fri, 1 Sep 2000 22:43:56 +0000 (22:43 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 1 Sep 2000 22:43:56 +0000 (18:43 -0400)
        * fix-header.c (write_rbrac): Add putc and getc to list of
        functions to protect against prior definition as a macro.

From-SVN: r36108

gcc/ChangeLog
gcc/fix-header.c

index e2bb8124b44ffd5b20789d97dd418ff96d6f1567..b7b5afcf63f9f6e145ce83fcb6a91b3da94ee57e 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-01  Fred Fish  <fnf@be.com>
+
+       * 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  <jsm28@cam.ac.uk>
 
        * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
index 3dadb0e8ab953148fb6d37fa078e0fbfe3e36bd0..25c75bb99e4e0e75ad8afef7ce3619bf57cd69f2 100644 (file)
@@ -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")