From 393c71c21300a088ff5c46ea263b3b2e28084ce6 Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Sun, 16 Jun 2019 16:09:42 +0800 Subject: add ctype.h header Sometimes coreboot needs to compile external code (e.g. vboot_reference) using its own set of system header files. When these headers don't line up with C Standard Library, it causes problems. Create ctype.h header file. Relocate ctype.h functions from string.h into ctype.h. Update source files which call ctype.h functions accordingly. Note that ctype.h still lacks five functions which are not used in coreboot source: isalnum, isalpha, iscntrl, isgraph, ispunct BUG=b:124141368 TEST=make clean && make test-abuild BRANCH=none Change-Id: I31b5e8af49956ec024a392a73c3c9024b9a9c194 Signed-off-by: Joel Kitching Reviewed-on: https://review.coreboot.org/c/coreboot/+/33525 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/console/vtxprintf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/console') diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index c429ac79e2..01091c82e8 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -16,6 +16,7 @@ */ #include +#include #include #define call_tx(x) tx_byte(x, data) -- cgit v1.2.3