[MPlayer-cvslog] r30581 - in trunk/loader/wine: mmreg.h pe_image.h
diego
subversion at mplayerhq.hu
Sun Feb 14 15:49:45 CET 2010
Author: diego
Date: Sun Feb 14 15:49:44 2010
New Revision: 30581
Log:
Directly mark structs as WINE_PACKED where all members are marked as packed.
This fixes a ton of gcc warnings about ignored packed attributes.
Modified:
trunk/loader/wine/mmreg.h
trunk/loader/wine/pe_image.h
Modified: trunk/loader/wine/mmreg.h
==============================================================================
--- trunk/loader/wine/mmreg.h Sun Feb 14 15:48:54 2010 (r30580)
+++ trunk/loader/wine/mmreg.h Sun Feb 14 15:49:44 2010 (r30581)
@@ -89,19 +89,19 @@ typedef struct {
#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_ */
Modified: trunk/loader/wine/pe_image.h
==============================================================================
--- trunk/loader/wine/pe_image.h Sun Feb 14 15:48:54 2010 (r30580)
+++ trunk/loader/wine/pe_image.h Sun Feb 14 15:49:44 2010 (r30581)
@@ -54,19 +54,19 @@ PIMAGE_RESOURCE_DIRECTORY GetResDirEntry
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 {
More information about the MPlayer-cvslog
mailing list