diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-02-15 20:36:23 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-15 13:36:23 -0700 |
commit | 79e118448542dc4e449e17ff1fb1e27f78566326 (patch) | |
tree | d8f9558ef6d9cd4a234e3314c61026a1bb51a697 /gcc | |
parent | c9b4de06772eb2125143f7f888cb7bd8050bedc2 (diff) | |
download | gcc-79e118448542dc4e449e17ff1fb1e27f78566326.zip gcc-79e118448542dc4e449e17ff1fb1e27f78566326.tar.gz gcc-79e118448542dc4e449e17ff1fb1e27f78566326.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/system.h | 10 |
2 files changed, 13 insertions, 3 deletions
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 <ghazi@caip.rutgers.edu> + + * 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 <wilson@cygnus.com> * 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__ */ |