]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't declare xmalloc or xrealloc in bucomm.h
authorAlan Modra <amodra@gmail.com>
Tue, 1 Aug 2023 22:23:26 +0000 (07:53 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Aug 2023 22:23:26 +0000 (07:53 +0930)
commitb6456e91d40fd38db264db26991c99381a3da5e6
tree9ee6b79df08ab704006f69d6ea3e606d383d3d49
parent665b41c0ce13ab2f9df18881a699c5e896e906f2
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.
binutils/bucomm.h
binutils/od-macho.c
binutils/od-xcoff.c