From 5626581da84280b9247b99be097b2c807546b24f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 23 Apr 2005 14:00:51 +0000 Subject: These structs must be packed svn-id: r17770 --- simon/vga.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'simon/vga.h') diff --git a/simon/vga.h b/simon/vga.h index 5a4c76181d..ad5095ffd6 100644 --- a/simon/vga.h +++ b/simon/vga.h @@ -24,11 +24,15 @@ namespace Simon { +#if !defined(__GNUC__) + #pragma START_PACK_STRUCTS +#endif + struct VgaFile1Header { uint16 x_1, x_2; uint16 hdr2_start; uint16 x_3, x_4; -}; +} GCC_PACK; struct VgaFile1Header2 { uint16 x_1; @@ -40,20 +44,25 @@ struct VgaFile1Header2 { uint16 x_4; uint16 id_table; uint16 x_5; -}; +} GCC_PACK; struct VgaFile1Struct0x8 { uint16 id; uint16 x_1; uint16 x_2; uint16 script_offs; -}; +} GCC_PACK; struct VgaFile1Struct0x6 { uint16 id; uint16 x_2; uint16 script_offs; -}; +} GCC_PACK; + + +#if !defined(__GNUC__) + #pragma END_PACK_STRUCTS +#endif struct VC10_state { int image; -- cgit v1.2.3