Skip to content

Commit

Permalink
blisp_struct.h: use _Static_assert for pre-C23 compatibility
Browse files Browse the repository at this point in the history
Closes: pine64#61
  • Loading branch information
barracuda156 committed Jan 5, 2024
1 parent 7a85414 commit bfe8cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/blisp_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct bfl_boot_header {
uint32_t crc32;
};

static_assert(sizeof(struct bfl_boot_header) == 176,
_Static_assert(sizeof(struct bfl_boot_header) == 176,
"Bootheader have wrong size");

struct blflash_segment_header {
Expand All @@ -164,7 +164,7 @@ struct blflash_segment_header {
uint32_t crc32;
};

static_assert(sizeof(struct blflash_segment_header) == 16,
_Static_assert(sizeof(struct blflash_segment_header) == 16,
"Segment header have wrong size");

#pragma pack(pop)
Expand Down

0 comments on commit bfe8cd1

Please sign in to comment.