From c1536adcf4c4cd3a36288e2edb1af06189ba0198 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 16 Jun 2021 17:47:38 +0000 Subject: includes: Define `CHAR_BIT` in `limits.h` Change-Id: Ib1d80d0c7457f90596ef5cd9d5ad0c4a33c8d473 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/55591 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- payloads/libpayload/include/limits.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads/libpayload/include/limits.h') diff --git a/payloads/libpayload/include/limits.h b/payloads/libpayload/include/limits.h index 45a483311a..53adfcb98c 100644 --- a/payloads/libpayload/include/limits.h +++ b/payloads/libpayload/include/limits.h @@ -39,6 +39,8 @@ # endif #endif +#define CHAR_BIT 8 + #define USHRT_MAX ((unsigned short int)~0U) #define SHRT_MIN ((short int)(USHRT_MAX & ~(USHRT_MAX >> 1))) #define SHRT_MAX ((short int)(USHRT_MAX >> 1)) -- cgit v1.2.3