mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.
This commit is contained in:
@ -90,8 +90,10 @@ extern char *cplus_demangle ();
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
extern char *xmalloc (int);
|
/* GDB prototypes these as void* in defs.h, so we better too, at least
|
||||||
extern char *xrealloc (char *, int);
|
as long as we're including defs.h. */
|
||||||
|
extern void *xmalloc (int);
|
||||||
|
extern void *xrealloc (char *, int);
|
||||||
extern void free (char *);
|
extern void free (char *);
|
||||||
#else
|
#else
|
||||||
extern char *xmalloc ();
|
extern char *xmalloc ();
|
||||||
|
Reference in New Issue
Block a user