mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Make it compile on gcc12.
Otherwise there's an error about mismatching alignment when doing "itsy_bitsy::read<flags_t, *>".
This commit is contained in:
parent
6b30ae8eae
commit
12d6573a10
@ -101,7 +101,7 @@ namespace itsy_bitsy {
|
|||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
struct flags_t {
|
struct flags_t {
|
||||||
#else
|
#else
|
||||||
struct __attribute__((packed, aligned(1))) flags_t {
|
struct __attribute__((packed, aligned(4))) flags_t {
|
||||||
#endif
|
#endif
|
||||||
uint8_t C : 1;
|
uint8_t C : 1;
|
||||||
uint8_t N : 1;
|
uint8_t N : 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user