Declare malloc and friends

From-SVN: r13628
This commit is contained in:
Michael Meissner 1997-02-11 21:01:23 +00:00
parent cf641ce6cc
commit 01be8af60b
2 changed files with 16 additions and 0 deletions

View 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 ();

View 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