mirror of
https://github.com/pine64/blisp.git
synced 2025-08-21 11:00:52 +00:00
Compare commits
2 Commits
d53ac9544e
...
a20c719298
Author | SHA1 | Date | |
---|---|---|---|
|
a20c719298 | ||
|
bfe8cd1e34 |
@ -9,12 +9,6 @@
|
|||||||
#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 {
|
||||||
@ -160,7 +154,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 {
|
||||||
@ -170,7 +164,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