From 6a7cf6d6cfb4be5d212a8d27304e11820125679e Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 5 Jan 2004 14:46:12 +0000 Subject: Marked some more structs as packed. I don't know if it makes any difference, as they contain only 32-bit integers, but I also believe it does no harm. svn-id: r12159 --- sword2/icons.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sword2/icons.h') diff --git a/sword2/icons.h b/sword2/icons.h index 3a6512ad64..4a6ca24e00 100644 --- a/sword2/icons.h +++ b/sword2/icons.h @@ -28,11 +28,19 @@ namespace Sword2 { // define these in a script and then register them with the system +#if !defined(__GNUC__) + #pragma START_PACK_STRUCTS +#endif + struct MenuObject { int32 icon_resource; // icon graphic graphic int32 luggage_resource; // luggage icon resource (for attaching to // mouse pointer) -}; +} GCC_PACK; + +#if !defined(__GNUC__) + #pragma END_PACK_STRUCTS +#endif } // End of namespace Sword2 -- cgit v1.2.3