]> gcc.gnu.org Git - gcc.git/commitdiff
system.h: Fix return type of bcmp prototype from `void' to `int'.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 15 Feb 1998 20:36:23 +0000 (20:36 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 15 Feb 1998 20:36:23 +0000 (13:36 -0700)
        * 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

gcc/ChangeLog
gcc/system.h

index 48f76cf948d5142fe5d1e8c883bc739b02aab9b1..798d117ca357b3c49b8d86b50c6371e99a7b7dc2 100644 (file)
@@ -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.
index 920e5128c68df2912103a77157b599305ece3d66..ef3ee49a8c5077804e3d03eb95de736c07329d05 100644 (file)
@@ -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__ */
This page took 0.079635 seconds and 5 git commands to generate.