From: Richard M. Stallman Date: Fri, 3 Jan 1997 01:24:27 +0000 (+0000) Subject: [__STDC__ or _MSC_VER]: X-Git-Tag: GNU_ORIG~14 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/8f047e5ecf6e93da0425059dea3a94d89f1026d0?ds=inline [__STDC__ or _MSC_VER]: Declare calloc and realloc to return void *. --- 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;