OSDN Git Service

* fix-header.c (write_rbrac): Add putc and getc to list of
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2000 22:43:56 +0000 (22:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2000 22:43:56 +0000 (22:43 +0000)
        functions to protect against prior definition as a macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36108 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fix-header.c

index e2bb812..b7b5afc 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 3dadb0e..25c75bb 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")