diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-02 07:53:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-02 07:53:26 +0930 |
commit | b6456e91d40fd38db264db26991c99381a3da5e6 (patch) | |
tree | 9ee6b79df08ab704006f69d6ea3e606d383d3d49 /binutils/bucomm.h | |
parent | 665b41c0ce13ab2f9df18881a699c5e896e906f2 (diff) | |
download | gdb-b6456e91d40fd38db264db26991c99381a3da5e6.zip gdb-b6456e91d40fd38db264db26991c99381a3da5e6.tar.gz gdb-b6456e91d40fd38db264db26991c99381a3da5e6.tar.bz2 |
Don't declare xmalloc or xrealloc in bucomm.h
It's better to include the proper header, which has declarations with
various attributes. Commit 096aefc040 in 1994 introduced this wart.
* bucomm.h (xmalloc, xrealloc): Delete declaration.
* od-macho.c: Include libiberty.h.
* od-xcoff.c: Include libiberty.h.
Diffstat (limited to 'binutils/bucomm.h')
-rw-r--r-- | binutils/bucomm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/binutils/bucomm.h b/binutils/bucomm.h index 0c11c0b..b708790 100644 --- a/binutils/bucomm.h +++ b/binutils/bucomm.h @@ -76,12 +76,6 @@ extern void set_times (const char *, const struct stat *); extern int smart_rename (const char *, const char *, int, struct stat *, bool); - -/* In libiberty. */ -void *xmalloc (size_t); - -void *xrealloc (void *, size_t); - #if __GNUC__ >= 7 #define _mul_overflow(a, b, res) __builtin_mul_overflow (a, b, res) #else |