util/spkmodem-decode: add CHAR_BIT define

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-13 02:33:40 +00:00
parent 2d77f9649d
commit c666da8ecc

View File

@@ -257,6 +257,10 @@ extern int optind;
extern int opterr;
extern int optopt;
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif
typedef char static_assert_char_is_8_bits[(CHAR_BIT == 8) ? 1 : -1];
typedef char static_assert_char_is_1[(sizeof(char) == 1) ? 1 : -1];
typedef char static_assert_short[(sizeof(short) == 2) ? 1 : -1];