From e93388417c1ecc6d69b155045cabb994cb8687fd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 19 Mar 2021 17:39:24 +1030 Subject: 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. --- libctf/ChangeLog | 4 ++++ libctf/ctf-impl.h | 1 + 2 files changed, 5 insertions(+) (limited to 'libctf') 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 + + * ctf-impl.h: Include string.h. + 2021-03-18 Nick Alcock * 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 #include #include +#include #include #include #include -- cgit v1.1