* cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.

This commit is contained in:
Jim Kingdon 1991-05-03 06:03:54 +00:00
parent 63a463b149
commit 2cb3be2c94

View File

@ -90,8 +90,10 @@ extern char *cplus_demangle ();
#endif
#ifdef __STDC__
extern char *xmalloc (int);
extern char *xrealloc (char *, int);
/* GDB prototypes these as void* in defs.h, so we better too, at least
as long as we're including defs.h. */
extern void *xmalloc (int);
extern void *xrealloc (char *, int);
extern void free (char *);
#else
extern char *xmalloc ();