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:
Kp 2013-08-25 17:15:58 +00:00
parent 5bafa16e7f
commit 1abcfcb844

View file

@ -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