CVS: winex/include/wine compiler_defines.h, 1.3, 1.4
[email protected] 30 Aug 2007 14:17:40 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/include/wine compiler_defines.h,1.3,1.4Update of /var/lib/cvsd/cvsroot/winex/include/wine In directory agravaine:/tmp/cvs-serv18951/include/wine Modified Files: compiler_defines.h Log Message: - fixed a few compiler warnings in the PDB file dumper - fixed some alignment issues in some of the dbghelp structs. Windows apps expected some members to be at different offsets than gcc was generating - added the WINE_ALIGN() macro to align single members of structs Index: compiler_defines.h =================================================================== RCS file: /var/lib/cvsd/cvsroot/winex/include/wine/compiler_defines.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- compiler_defines.h 14 Mar 2005 17:26:08 -0000 1.3 +++ compiler_defines.h 30 Aug 2007 14:17:38 -0000 1.4 @@ -16,6 +16,8 @@ * WINE_EXPECT - A compiler hint as to the expected outcome of * a logical comparison. * + * WINE_ALIGN - A compiler hint that allows the explicit + * alignment of struct members. */ #ifdef __GNUC__ #define WINE_PACKED __attribute__((packed)) @@ -36,6 +38,9 @@ # else /* gcc is >= 2.96 */ # define WINE_EXPECT( exp, c ) __builtin_expect( (exp), (c) ) # endif /* GCC >= 2.96 */ + +#define WINE_ALIGN(x) __attribute__((aligned (x))) + #else #define WINE_PACKED /* nothing */ @@ -43,5 +48,5 @@ #define WINE_USED /* nothing */ #define WINE_NORETURN /* nothing */ #define WINE_EXPECT( exp, c ) (exp) - +#define WINE_ALIGN(x) /* nothing */ #endif