summaryrefslogtreecommitdiffstats
path: root/gcc/system.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-15 20:36:23 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-15 20:36:23 +0000
commitfe879f7c9b4a04e6f6c0be0976ff34af4d4c0bbb (patch)
treed8f9558ef6d9cd4a234e3314c61026a1bb51a697 /gcc/system.h
parente73a0ac8e7ea64719b6b94bd9ee66996e3ad57c0 (diff)
downloadppe42-gcc-fe879f7c9b4a04e6f6c0be0976ff34af4d4c0bbb.tar.gz
ppe42-gcc-fe879f7c9b4a04e6f6c0be0976ff34af4d4c0bbb.zip
* 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
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h10
1 files changed, 7 insertions, 3 deletions
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__ */
OpenPOWER on IntegriCloud