diff options
Diffstat (limited to 'gdb/cplus-dem.c')
-rw-r--r-- | gdb/cplus-dem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c index cbb79c4..750bdae 100644 --- a/gdb/cplus-dem.c +++ b/gdb/cplus-dem.c @@ -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 (); |