mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Use existing ScummVM functionality for packed structs
svn-id: r14079
This commit is contained in:
@@ -134,10 +134,9 @@ class Win32ResExtractor {
|
||||
* Structures
|
||||
*/
|
||||
|
||||
#if !defined (WIN32)
|
||||
#define PACKED __attribute__ ((packed))
|
||||
#endif
|
||||
#pragma pack(1)
|
||||
#if !defined(__GNUC__)
|
||||
#pragma START_PACK_STRUCTS
|
||||
#endif
|
||||
|
||||
struct WinLibrary {
|
||||
File *file;
|
||||
@@ -184,7 +183,7 @@ class Win32ResExtractor {
|
||||
uint16 reserved;
|
||||
uint16 type;
|
||||
uint16 count;
|
||||
Win32CursorIconDirEntry entries[1] PACKED;
|
||||
Win32CursorIconDirEntry entries[1] GCC_PACK;
|
||||
};
|
||||
|
||||
struct Win32CursorIconFileDirEntry {
|
||||
@@ -419,7 +418,9 @@ class Win32ResExtractor {
|
||||
uint16 number_of_id_entries;
|
||||
};
|
||||
|
||||
#pragma pack()
|
||||
#if !defined(__GNUC__)
|
||||
#pragma END_PACK_STRUCTS
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Function Prototypes
|
||||
|
||||
Reference in New Issue
Block a user