# HG changeset patch # User voroshil # Date 1189447645 0 # Node ID 67e6bb7dcac41f6769a9b28fe998e105e8fe5764 # Parent d31512f03462dad562ae8f27439db66371ad4321 Fix for a lot of "'packed' attribute ignored for field of type 'BYTE'" warnings. diff -r d31512f03462 -r 67e6bb7dcac4 loader/wine/mmreg.h --- a/loader/wine/mmreg.h Mon Sep 10 17:09:35 2007 +0000 +++ b/loader/wine/mmreg.h Mon Sep 10 18:07:25 2007 +0000 @@ -90,19 +90,19 @@ #ifndef _MPEGLAYER3WAVEFORMAT_ #define _MPEGLAYER3WAVEFORMAT_ -typedef struct mpeglayer3waveformat_tag { - WORD wFormatTag WINE_PACKED; - WORD nChannels WINE_PACKED; - DWORD nSamplesPerSec WINE_PACKED; - DWORD nAvgBytesPerSec WINE_PACKED; - WORD nBlockAlign WINE_PACKED; - WORD wBitsPerSample WINE_PACKED; - WORD cbSize WINE_PACKED; - WORD wID WINE_PACKED; - DWORD fdwFlags WINE_PACKED; - WORD nBlockSize WINE_PACKED; - WORD nFramesPerBlock WINE_PACKED; - WORD nCodecDelay WINE_PACKED; +typedef struct WINE_PACKED mpeglayer3waveformat_tag { + WORD wFormatTag; + WORD nChannels; + DWORD nSamplesPerSec; + DWORD nAvgBytesPerSec; + WORD nBlockAlign; + WORD wBitsPerSample; + WORD cbSize; + WORD wID; + DWORD fdwFlags; + WORD nBlockSize; + WORD nFramesPerBlock; + WORD nCodecDelay; } MPEGLAYER3WAVEFORMAT; #endif /* !_MPEGLAYER3WAVEFORMAT_ */ diff -r d31512f03462 -r 67e6bb7dcac4 loader/wine/module.h --- a/loader/wine/module.h Mon Sep 10 17:09:35 2007 +0000 +++ b/loader/wine/module.h Mon Sep 10 18:07:25 2007 +0000 @@ -11,11 +11,11 @@ #include "pe_image.h" -typedef struct { +typedef struct WINE_PACKED { BYTE type; BYTE flags; BYTE segnum; - WORD offs WINE_PACKED; + WORD offs; } ET_ENTRY; typedef struct { @@ -57,12 +57,12 @@ } SELFLOADHEADER; /* Parameters for LoadModule() */ -typedef struct +typedef struct WINE_PACKED { HGLOBAL16 hEnvironment; /* Environment segment */ - SEGPTR cmdLine WINE_PACKED; /* Command-line */ - SEGPTR showCmd WINE_PACKED; /* Code for ShowWindow() */ - SEGPTR reserved WINE_PACKED; + SEGPTR cmdLine; /* Command-line */ + SEGPTR showCmd; /* Code for ShowWindow() */ + SEGPTR reserved; } LOADPARAMS16; typedef struct diff -r d31512f03462 -r 67e6bb7dcac4 loader/wine/pe_image.h --- a/loader/wine/pe_image.h Mon Sep 10 17:09:35 2007 +0000 +++ b/loader/wine/pe_image.h Mon Sep 10 18:07:25 2007 +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 { diff -r d31512f03462 -r 67e6bb7dcac4 loader/wine/winbase.h --- a/loader/wine/winbase.h Mon Sep 10 17:09:35 2007 +0000 +++ b/loader/wine/winbase.h Mon Sep 10 18:07:25 2007 +0000 @@ -536,14 +536,14 @@ /* Debugging support (DEBUG SYSTEM ONLY) */ -typedef struct +typedef struct WINE_PACKED { UINT16 flags; - DWORD dwOptions WINE_PACKED; - DWORD dwFilter WINE_PACKED; - CHAR achAllocModule[8] WINE_PACKED; - DWORD dwAllocBreak WINE_PACKED; - DWORD dwAllocCount WINE_PACKED; + DWORD dwOptions; + DWORD dwFilter; + CHAR achAllocModule[8]; + DWORD dwAllocBreak; + DWORD dwAllocCount; } WINDEBUGINFO, *LPWINDEBUGINFO; /* WINDEBUGINFO flags values */ diff -r d31512f03462 -r 67e6bb7dcac4 loader/wine/winuser.h --- a/loader/wine/winuser.h Mon Sep 10 17:09:35 2007 +0000 +++ b/loader/wine/winuser.h Mon Sep 10 18:07:25 2007 +0000 @@ -172,14 +172,14 @@ HWND hwnd; } CWPRETSTRUCT, *LPCWPRETSTRUCT; -typedef struct +typedef struct WINE_PACKED { UINT length; UINT flags; UINT showCmd; - POINT ptMinPosition WINE_PACKED; - POINT ptMaxPosition WINE_PACKED; - RECT rcNormalPosition WINE_PACKED; + POINT ptMinPosition; + POINT ptMaxPosition; + RECT rcNormalPosition; } WINDOWPLACEMENT, *LPWINDOWPLACEMENT; @@ -2545,7 +2545,7 @@ #define DSS_MONO 0x0080 #define DSS_RIGHT 0x8000 -typedef struct +typedef struct WINE_PACKED { UINT CtlType; UINT CtlID; @@ -2554,8 +2554,8 @@ UINT itemState; HWND hwndItem; HDC hDC; - RECT rcItem WINE_PACKED; - DWORD itemData WINE_PACKED; + RECT rcItem; + DWORD itemData; } DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT; @@ -2836,15 +2836,15 @@ /* DragObject stuff */ -typedef struct +typedef struct WINE_PACKED { HWND16 hWnd; HANDLE16 hScope; WORD wFlags; HANDLE16 hList; HANDLE16 hOfStruct; - POINT16 pt WINE_PACKED; - LONG l WINE_PACKED; + POINT16 pt; + LONG l; } DRAGINFO, *LPDRAGINFO; #define DRAGOBJ_PROGRAM 0x0001