diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-19 17:39:24 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-21 23:00:32 +1030 |
commit | e93388417c1ecc6d69b155045cabb994cb8687fd (patch) | |
tree | 24fa2ed727efd5a1775e4c8b76b8d92a5ae0ea10 /libctf | |
parent | 38e41a88457d2fcab42596c5d0183e410868c813 (diff) | |
download | binutils-e93388417c1ecc6d69b155045cabb994cb8687fd.zip binutils-e93388417c1ecc6d69b155045cabb994cb8687fd.tar.gz binutils-e93388417c1ecc6d69b155045cabb994cb8687fd.tar.bz2 |
Provide an inline startswith function in bfd.h
bfd/
* bfd-in.h (startswith): New inline.
(CONST_STRNEQ): Use startswith.
* bfd-in2.h: Regenerate.
gdbsupport/
* common-utils.h (startswith): Delete version now supplied by bfd.h.
libctf/
* ctf-impl.h: Include string.h.
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ChangeLog | 4 | ||||
-rw-r--r-- | libctf/ctf-impl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index d19327e..59f6fb0 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2021-03-21 Alan Modra <amodra@gmail.com> + + * ctf-impl.h: Include string.h. + 2021-03-18 Nick Alcock <nick.alcock@oracle.com> * ctf-types.c (ctf_type_encoding): Support, after a fashion, for enums. diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index ad4af32..342d2ff 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -32,6 +32,7 @@ #include <stddef.h> #include <stdio.h> #include <stdint.h> +#include <string.h> #include <limits.h> #include <ctype.h> #include <elf.h> |