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 273bd992dd
commit 172cbd4497
+4
View File
@@ -261,6 +261,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];