egcs, patches to system.h

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Feb 13 17:41:00 GMT 1998


	The return type for bcmp is wong in system.h.  I also made a few
other minor changes. 

		--Kaveh


Fri Feb 13 14:01:36 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.
 


--- gcc/system.h~	Fri Feb 13 12:09:56 1998
+++ gcc/system.h	Fri Feb 13 13:52:37 1998
@@ -133,7 +133,7 @@
 #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))
@@ -143,7 +143,7 @@
 #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))
@@ -153,7 +153,7 @@
 #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))
@@ -182,6 +182,10 @@
 
 #ifdef NEED_DECLARATION_FREE
 extern void free ();
+#endif
+
+#ifdef NEED_DECLARATION_GETENV
+extern char *getenv ();
 #endif
 
 #endif /* __GCC_SYSTEM_H__ */
--
Kaveh R. Ghazi			Project Manager / Custom Development
ghazi@caip.rutgers.edu		ICon CMT Corp.



More information about the Gcc mailing list