diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-20 00:28:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-20 00:28:23 +0000 |
commit | 619b7fe63b30edc68481be5f60ccde24165e837e (patch) | |
tree | 15f231666ea3d0fed8d10f4b92b83f6bff4aea90 /gdb/utils.c | |
parent | cec17fda455f2b9c8d6ecd531cfbb7d5cbb11ab5 (diff) | |
download | gdb-619b7fe63b30edc68481be5f60ccde24165e837e.tar.gz |
Move free() decl to utils.c.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index b81e3fd4c90..3aac2db3625 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -56,6 +56,12 @@ #include <readline/readline.h> +#ifndef MALLOC_INCOMPATIBLE +#ifdef NEED_DECLARATION_FREE +extern void free (); +#endif +#endif + #undef XMALLOC #define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) @@ -1110,7 +1116,7 @@ void xfree (void *ptr) { if (ptr != NULL) - free (ptr); + free (ptr); /* NOTE: GDB's only call to free() */ } |