This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

CVS-19981211: PATCH for "macro `fputs' used without args"


I'm proceeding step by step... This is on hppa1.1-hp-hpux10.20:

../../egcs-19981211/gcc/protoize.c:145: macro `fputs' used without args

Compiling protoize.c with "--save-temps -Wp,-dD" shows, that "system.h"
provides

# define fputs(String, Stream) fputs_unlocked (String, Stream)

which then of course results in the above error message for:

extern int fputs ();

from "protoize.c".

manfred


1998-12-11  Manfred Hollstein  <manfred@s-direktnet.de>

	* protoize.c (fputs): Wrap extern declaration in #ifndef fputs.

diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19981211.orig/gcc/protoize.c egcs-19981211/gcc/protoize.c
--- egcs-19981211.orig/gcc/protoize.c	Mon Nov 30 12:24:35 1998
+++ egcs-19981211/gcc/protoize.c	Fri Dec 11 13:23:31 1998
@@ -143,7 +142,9 @@ extern int close ();
 extern int fflush ();
 extern int atoi ();
 extern int puts ();
+#ifndef fputs	/* This may have been #defined by "system.h".  */
 extern int fputs ();
+#endif
 extern int fputc ();
 extern int unlink ();
 extern int access ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]