Compare commits

..

2 Commits

View File

@ -9,12 +9,6 @@
#include <assert.h>
#include <stdint.h>
#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
&& defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& __STDC_VERSION__ <= 201710L
#define static_assert _Static_assert
#endif
#pragma pack(push, 1)
typedef struct {
@ -160,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 {
@ -170,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)