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>
This commit is contained in:
Nico Huber 2021-06-16 17:47:38 +00:00 committed by Werner Zeh
parent 2eae410c54
commit c1536adcf4
1 changed files with 2 additions and 0 deletions

View File

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