From fe879f7c9b4a04e6f6c0be0976ff34af4d4c0bbb Mon Sep 17 00:00:00 2001 From: law Date: Sun, 15 Feb 1998 20:36:23 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18018 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/system.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index 920e5128c68..ef3ee49a8c5 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.2.1