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

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

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