X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c49a8e71cec845d32366432b824a9317e4a80160..e0d27f5f0827105796a8e47180d89d091bfa1b50:/src/allocate.c?ds=sidebyside diff --git a/src/allocate.c b/src/allocate.c index 1175e791..fdc83856 100644 --- a/src/allocate.c +++ b/src/allocate.c @@ -22,13 +22,21 @@ Boston, MA 02111-1307, USA. */ #include #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));