mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
util/spkmodem-decode: add CHAR_BIT define
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -261,6 +261,10 @@ extern int optind;
|
|||||||
extern int opterr;
|
extern int opterr;
|
||||||
extern int optopt;
|
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_8_bits[(CHAR_BIT == 8) ? 1 : -1];
|
||||||
typedef char static_assert_char_is_1[(sizeof(char) == 1) ? 1 : -1];
|
typedef char static_assert_char_is_1[(sizeof(char) == 1) ? 1 : -1];
|
||||||
typedef char static_assert_short[(sizeof(short) == 2) ? 1 : -1];
|
typedef char static_assert_short[(sizeof(short) == 2) ? 1 : -1];
|
||||||
|
|||||||
Reference in New Issue
Block a user