From 79e118448542dc4e449e17ff1fb1e27f78566326 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 15 Feb 1998 20:36:23 +0000 Subject: system.h: Fix return type of bcmp prototype from `void' to `int'. * system.h: Fix return type of bcmp prototype from `void' to `int'. Make bcopy, bcmp and bzero prototypes explicitly `extern'. Add a prototype for getenv. From-SVN: r18018 --- gcc/ChangeLog | 6 ++++++ gcc/system.h | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 48f76cf..798d117 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 15 21:33:55 1998 Kaveh R. Ghazi + + * system.h: Fix return type of bcmp prototype from `void' to `int'. + Make bcopy, bcmp and bzero prototypes explicitly `extern'. + Add a prototype for getenv. + Sun Feb 15 17:05:41 1998 Jim Wilson * mips/mips.h (INITIAL_ELIMINATION_OFFSET): Readd Jun 6 change. diff --git a/gcc/system.h b/gcc/system.h index 920e512..ef3ee49 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -134,7 +134,7 @@ extern int errno; #ifndef bcopy # ifdef HAVE_BCOPY # ifdef NEED_DECLARATION_BCOPY -void bcopy (); +extern void bcopy (); # endif # else /* ! HAVE_BCOPY */ # define bcopy(src,dst,len) memcpy ((dst),(src),(len)) @@ -144,7 +144,7 @@ void bcopy (); #ifndef bcmp # ifdef HAVE_BCMP # ifdef NEED_DECLARATION_BCMP -void bcmp (); +extern int bcmp (); # endif # else /* ! HAVE_BCMP */ # define bcmp(left,right,len) memcmp ((left),(right),(len)) @@ -154,7 +154,7 @@ void bcmp (); #ifndef bzero # ifdef HAVE_BZERO # ifdef NEED_DECLARATION_BZERO -void bzero (); +extern void bzero (); # endif # else /* ! HAVE_BZERO */ # define bzero(dst,len) memset ((dst),0,(len)) @@ -185,4 +185,8 @@ extern char *rindex (); extern void free (); #endif +#ifdef NEED_DECLARATION_GETENV +extern char *getenv (); +#endif + #endif /* __GCC_SYSTEM_H__ */ -- cgit v1.1