From 8f047e5ecf6e93da0425059dea3a94d89f1026d0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 3 Jan 1997 01:24:27 +0000 Subject: [PATCH] [__STDC__ or _MSC_VER]: Declare calloc and realloc to return void *. --- src/allocate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/allocate.c b/src/allocate.c index a13de7c1..9f07b016 100644 --- a/src/allocate.c +++ b/src/allocate.c @@ -21,8 +21,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include "system.h" +#if defined (__STDC__) || defined (_MSC_VER) +extern void *calloc (); +extern void *realloc (); +#else extern char *calloc (); extern char *realloc (); +#endif + extern void done (); extern char *program_name; -- 2.50.0