This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
CVS-19981211: PATCH for "macro `fputs' used without args"
- To: egcs-patches at cygnus dot com
- Subject: CVS-19981211: PATCH for "macro `fputs' used without args"
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Fri, 11 Dec 1998 13:37:51 +0100 (MET)
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
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 ();