aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2021-06-16 17:47:38 +0000
committerWerner Zeh <werner.zeh@siemens.com>2021-06-18 04:38:33 +0000
commitc1536adcf4c4cd3a36288e2edb1af06189ba0198 (patch)
treeb6ae66b3add349f871169021b295b35a1b22226b
parent2eae410c5458b05c3f6ead9db55270f4813659aa (diff)
includes: Define `CHAR_BIT` in `limits.h`
Change-Id: Ib1d80d0c7457f90596ef5cd9d5ad0c4a33c8d473 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55591 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--payloads/libpayload/include/limits.h2
1 files changed, 2 insertions, 0 deletions
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))