aboutsummaryrefslogtreecommitdiff
path: root/sword2/icons.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-01-05 14:46:12 +0000
committerTorbjörn Andersson2004-01-05 14:46:12 +0000
commit6a7cf6d6cfb4be5d212a8d27304e11820125679e (patch)
treea7cceb58f536e787d799cdc51d9113a9808d5f5b /sword2/icons.h
parentbe09d4dddc276a836e02a18f8e330e09b53a233b (diff)
downloadscummvm-rg350-6a7cf6d6cfb4be5d212a8d27304e11820125679e.tar.gz
scummvm-rg350-6a7cf6d6cfb4be5d212a8d27304e11820125679e.tar.bz2
scummvm-rg350-6a7cf6d6cfb4be5d212a8d27304e11820125679e.zip
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
Diffstat (limited to 'sword2/icons.h')
-rw-r--r--sword2/icons.h10
1 files changed, 9 insertions, 1 deletions
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