diff options
author | Lionel Ulmer | 2002-03-08 23:05:41 +0000 |
---|---|---|
committer | Lionel Ulmer | 2002-03-08 23:05:41 +0000 |
commit | ed8d623b3a6e330471236b86c249cf590b36d16c (patch) | |
tree | d0a633805b6c716a8a6931af0de9191ef7682518 | |
parent | 3ccb27dd2cd39dbfda72a53029f4f35804c5e0e4 (diff) | |
download | scummvm-rg350-ed8d623b3a6e330471236b86c249cf590b36d16c.tar.gz scummvm-rg350-ed8d623b3a6e330471236b86c249cf590b36d16c.tar.bz2 scummvm-rg350-ed8d623b3a6e330471236b86c249cf590b36d16c.zip |
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
-rw-r--r-- | scumm.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 |