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.
This commit is contained in:
Alan Modra 2021-03-19 17:39:24 +10:30
parent 38e41a8845
commit e93388417c
7 changed files with 35 additions and 12 deletions

View file

@ -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>