Commit 79e11844 by Kaveh R. Ghazi Committed by Jeff Law

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
parent c9b4de06
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> Sun Feb 15 17:05:41 1998 Jim Wilson <wilson@cygnus.com>
* mips/mips.h (INITIAL_ELIMINATION_OFFSET): Readd Jun 6 change. * mips/mips.h (INITIAL_ELIMINATION_OFFSET): Readd Jun 6 change.
......
...@@ -134,7 +134,7 @@ extern int errno; ...@@ -134,7 +134,7 @@ extern int errno;
#ifndef bcopy #ifndef bcopy
# ifdef HAVE_BCOPY # ifdef HAVE_BCOPY
# ifdef NEED_DECLARATION_BCOPY # ifdef NEED_DECLARATION_BCOPY
void bcopy (); extern void bcopy ();
# endif # endif
# else /* ! HAVE_BCOPY */ # else /* ! HAVE_BCOPY */
# define bcopy(src,dst,len) memcpy ((dst),(src),(len)) # define bcopy(src,dst,len) memcpy ((dst),(src),(len))
...@@ -144,7 +144,7 @@ void bcopy (); ...@@ -144,7 +144,7 @@ void bcopy ();
#ifndef bcmp #ifndef bcmp
# ifdef HAVE_BCMP # ifdef HAVE_BCMP
# ifdef NEED_DECLARATION_BCMP # ifdef NEED_DECLARATION_BCMP
void bcmp (); extern int bcmp ();
# endif # endif
# else /* ! HAVE_BCMP */ # else /* ! HAVE_BCMP */
# define bcmp(left,right,len) memcmp ((left),(right),(len)) # define bcmp(left,right,len) memcmp ((left),(right),(len))
...@@ -154,7 +154,7 @@ void bcmp (); ...@@ -154,7 +154,7 @@ void bcmp ();
#ifndef bzero #ifndef bzero
# ifdef HAVE_BZERO # ifdef HAVE_BZERO
# ifdef NEED_DECLARATION_BZERO # ifdef NEED_DECLARATION_BZERO
void bzero (); extern void bzero ();
# endif # endif
# else /* ! HAVE_BZERO */ # else /* ! HAVE_BZERO */
# define bzero(dst,len) memset ((dst),0,(len)) # define bzero(dst,len) memset ((dst),0,(len))
...@@ -185,4 +185,8 @@ extern char *rindex (); ...@@ -185,4 +185,8 @@ extern char *rindex ();
extern void free (); extern void free ();
#endif #endif
#ifdef NEED_DECLARATION_GETENV
extern char *getenv ();
#endif
#endif /* __GCC_SYSTEM_H__ */ #endif /* __GCC_SYSTEM_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment