mirror of
https://github.com/pine64/blisp.git
synced 2025-08-21 11:00:52 +00:00
Compare commits
2 Commits
a20c719298
...
d53ac9544e
Author | SHA1 | Date | |
---|---|---|---|
|
d53ac9544e | ||
|
be86373d37 |
@ -9,6 +9,12 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.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)
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -154,7 +160,7 @@ struct bfl_boot_header {
|
|||||||
uint32_t crc32;
|
uint32_t crc32;
|
||||||
};
|
};
|
||||||
|
|
||||||
_Static_assert(sizeof(struct bfl_boot_header) == 176,
|
static_assert(sizeof(struct bfl_boot_header) == 176,
|
||||||
"Bootheader have wrong size");
|
"Bootheader have wrong size");
|
||||||
|
|
||||||
struct blflash_segment_header {
|
struct blflash_segment_header {
|
||||||
@ -164,7 +170,7 @@ struct blflash_segment_header {
|
|||||||
uint32_t crc32;
|
uint32_t crc32;
|
||||||
};
|
};
|
||||||
|
|
||||||
_Static_assert(sizeof(struct blflash_segment_header) == 16,
|
static_assert(sizeof(struct blflash_segment_header) == 16,
|
||||||
"Segment header have wrong size");
|
"Segment header have wrong size");
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user