summaryrefslogtreecommitdiffstats
path: root/loader/wine/pe_image.h
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 14:49:44 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 14:49:44 +0000
commit4b6ce33628fd942a18bc5e5053da61024c13a9c6 (patch)
treed49a895bfa11c62a631bce0385665ca239f6f8bc /loader/wine/pe_image.h
parent552206882168b6ef4bacd1c3b198df21a0ce6ccf (diff)
downloadmpv-4b6ce33628fd942a18bc5e5053da61024c13a9c6.tar.bz2
mpv-4b6ce33628fd942a18bc5e5053da61024c13a9c6.tar.xz
Directly mark structs as WINE_PACKED where all members are marked as packed.
This fixes a ton of gcc warnings about ignored packed attributes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30581 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/wine/pe_image.h')
-rw-r--r--loader/wine/pe_image.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/loader/wine/pe_image.h b/loader/wine/pe_image.h
index 1c28bc12d0..aab6fd8cd3 100644
--- a/loader/wine/pe_image.h
+++ b/loader/wine/pe_image.h
@@ -54,19 +54,19 @@ PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY, LPCWSTR, DW
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 {