Mercurial > mplayer.hg
diff loader/wine/pe_image.h @ 30539:437b251e4194
Directly mark structs as WINE_PACKED where all members are marked as packed.
This fixes a ton of gcc warnings about ignored packed attributes.
author | diego |
---|---|
date | Sun, 14 Feb 2010 14:49:44 +0000 |
parents | 9e739bdb049c |
children |
line wrap: on
line diff
--- a/loader/wine/pe_image.h Sun Feb 14 14:48:54 2010 +0000 +++ b/loader/wine/pe_image.h Sun Feb 14 14:49:44 2010 +0000 @@ -54,19 +54,19 @@ typedef DWORD CALLBACK (*DLLENTRYPROC)(HMODULE,DWORD,LPVOID); -typedef struct { - WORD popl WINE_PACKED; /* 0x8f 0x05 */ - DWORD addr_popped WINE_PACKED;/* ... */ - BYTE pushl1 WINE_PACKED; /* 0x68 */ - DWORD newret WINE_PACKED; /* ... */ - BYTE pushl2 WINE_PACKED; /* 0x68 */ - DWORD origfun WINE_PACKED; /* original function */ - BYTE ret1 WINE_PACKED; /* 0xc3 */ - WORD addesp WINE_PACKED; /* 0x83 0xc4 */ - BYTE nrofargs WINE_PACKED; /* nr of arguments to add esp, */ - BYTE pushl3 WINE_PACKED; /* 0x68 */ - DWORD oldret WINE_PACKED; /* Filled out from popl above */ - BYTE ret2 WINE_PACKED; /* 0xc3 */ +typedef struct WINE_PACKED { + WORD popl; /* 0x8f 0x05 */ + DWORD addr_popped; /* ... */ + BYTE pushl1; /* 0x68 */ + DWORD newret; /* ... */ + BYTE pushl2; /* 0x68 */ + DWORD origfun; /* original function */ + BYTE ret1; /* 0xc3 */ + WORD addesp; /* 0x83 0xc4 */ + BYTE nrofargs; /* nr of arguments to add esp, */ + BYTE pushl3; /* 0x68 */ + DWORD oldret; /* Filled out from popl above */ + BYTE ret2; /* 0xc3 */ } ELF_STDCALL_STUB; typedef struct {