aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1997-02-11 21:01:23 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1997-02-11 21:01:23 +0000
commit01be8af60bc85cf8671c5582559174abfaf333ab (patch)
tree89fbfb53e18a0648963d04ae2ac9372130f0c160 /gcc
parentcf641ce6cced9835f60dc4f353c55f545a45207b (diff)
downloadgcc-01be8af60bc85cf8671c5582559174abfaf333ab.zip
gcc-01be8af60bc85cf8671c5582559174abfaf333ab.tar.gz
gcc-01be8af60bc85cf8671c5582559174abfaf333ab.tar.bz2
Declare malloc and friends
From-SVN: r13628
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/xm-rs6000.h7
-rw-r--r--gcc/config/rs6000/xm-sysv4.h9
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/rs6000/xm-rs6000.h b/gcc/config/rs6000/xm-rs6000.h
index 9dbd41e..df6e4e7 100644
--- a/gcc/config/rs6000/xm-rs6000.h
+++ b/gcc/config/rs6000/xm-rs6000.h
@@ -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 ();
diff --git a/gcc/config/rs6000/xm-sysv4.h b/gcc/config/rs6000/xm-sysv4.h
index 5d654f4..4e8ee79 100644
--- a/gcc/config/rs6000/xm-sysv4.h
+++ b/gcc/config/rs6000/xm-sysv4.h
@@ -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