From ed8d623b3a6e330471236b86c249cf590b36d16c Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Fri, 8 Mar 2002 23:05:41 +0000 Subject: [PATCH] Yet another packing fix for the iPAQ (seems that GCC does not 'recurse pack' and only pack the structure on which the attribute is put). Note: maybe the pack on the unions is superfluous, but well, one never knows :-) svn-id: r3693 --- scumm.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scumm.h b/scumm.h index 808b6e8cae0..a5f933a350a 100644 --- a/scumm.h +++ b/scumm.h @@ -121,12 +121,12 @@ struct RoomHeader { uint32 version; uint16 width,height; uint16 numObjects; - } v7; + } GCC_PACK v7; struct { uint16 width,height; uint16 numObjects; - } old; - }; + } GCC_PACK old; + } GCC_PACK; } GCC_PACK; struct BompHeader { @@ -164,7 +164,7 @@ struct CodeHeader { uint16 walk_x; uint16 walk_y; byte actordir; - } v5; + } GCC_PACK v5; struct { uint16 obj_id; @@ -174,16 +174,16 @@ struct CodeHeader { uint16 unk1; uint16 unk2; byte actordir; - } v6; + } GCC_PACK v6; struct { uint32 version; uint16 obj_id; byte parent; byte parentstate; - } v7; + } GCC_PACK v7; - }; + } GCC_PACK; } GCC_PACK; struct ImageHeader { /* file format */ @@ -196,8 +196,8 @@ struct ImageHeader { /* file format */ uint16 unk_2; struct { int16 x,y; - } hotspot[15]; - } old; + } GCC_PACK hotspot[15]; + } GCC_PACK old; struct { uint32 version; @@ -210,9 +210,9 @@ struct ImageHeader { /* file format */ uint16 unk_2; struct { int16 x,y; - } hotspot[15]; - } v7; - }; + } GCC_PACK hotspot[15]; + } GCC_PACK v7; + } GCC_PACK; } GCC_PACK; #pragma END_PACK_STRUCTS