Declare malloc and friends
authorMichael Meissner <meissner@gcc.gnu.org>
Tue, 11 Feb 1997 21:01:23 +0000 (21:01 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Tue, 11 Feb 1997 21:01:23 +0000 (21:01 +0000)
From-SVN: r13628

gcc/config/rs6000/xm-rs6000.h
gcc/config/rs6000/xm-sysv4.h

index 9dbd41ed7babdd68313f5a87d0c64172223502e6..df6e4e7ad97c2588cabb936b2cb7b52f3fca7125 100644 (file)
@@ -59,3 +59,10 @@ extern char *alloca ();
    collect has a chance to see them, so scan the object files directly.  */
 #define COLLECT_EXPORT_LIST
 #endif
+
+#ifndef __STDC__
+extern char *malloc (), *realloc (), *calloc ();
+#else
+extern void *malloc (), *realloc (), *calloc ();
+#endif
+extern void free ();
index 5d654f4a156b280dd970d835ac2296ed43952ee4..4e8ee79cbd4f8f5d80859835d7eb6ebba0d44fb9 100644 (file)
@@ -58,3 +58,12 @@ extern char *alloca ();
 
 /* Solaris has a different declaration of sys_siglist than collect uses.  */
 #define DONT_DECLARE_SYS_SIGLIST
+
+#ifdef __PPC__
+#ifndef __STDC__
+extern char *malloc (), *realloc (), *calloc ();
+#else
+extern void *malloc (), *realloc (), *calloc ();
+#endif
+extern void free ();
+#endif