Don't declare calloc() and realloc() if not necessary.

This commit is contained in:
Jesse Thilo committed 1999-04-13 19:53:42 +00:00
1 parent bbcb769c0e
commit f9b730cd59
4 files changed
+65 -1

No files matched your search

+9 -1
View File
@@ -22,13 +22,21 @@ Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "system.h"
#ifdef NEED_DECLARATION_CALLOC
#if defined (__STDC__) || defined (_MSC_VER)
extern void *calloc ();
extern void *realloc ();
#else
extern char *calloc ();
#endif
#endif /* NEED_DECLARATION_CALLOC */
#ifdef NEED_DECLARATION_REALLOC
#if defined (__STDC__) || defined (_MSC_VER)
extern void *realloc ();
#else
extern char *realloc ();
#endif
#endif /* NEED_DECLARATION_REALLOC */
char *xmalloc PARAMS((register unsigned));
char *xrealloc PARAMS((register char *, register unsigned));