Add sanity check that DiskBitmapHeader is the right size
This would have caught the -mms-bitfields bug at build time.
This commit is contained in:
parent
5bafa16e7f
commit
1abcfcb844
|
@ -130,6 +130,7 @@ typedef struct DiskBitmapHeader {
|
|||
ubyte avg_color;
|
||||
int offset;
|
||||
} __pack__ DiskBitmapHeader;
|
||||
typedef char padding_check[sizeof(DiskBitmapHeader) == 0x12 ? 1 : -1];
|
||||
|
||||
#define DISKBITMAPHEADER_D1_SIZE 17 // no wh_extra
|
||||
|
||||
|
|
Loading…
Reference in a new issue