2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
* include/windef.h (PACKED): Remove macro. * include/wincon.h: Replace PACKED macro with __attribute__((packed)). Thanks to Keith Marshall for the fix.
This commit is contained in:
parent
a491557a55
commit
8ba4144d50
|
@ -1,3 +1,10 @@
|
|||
2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
|
||||
|
||||
* include/windef.h (PACKED): Remove macro.
|
||||
* include/wincon.h: Replace PACKED macro with __attribute__((packed)).
|
||||
|
||||
Thanks to Keith Marshall for the fix.
|
||||
|
||||
2011-04-21 Chris Sutcliffe <ir0nh34d@users.sf.net>
|
||||
|
||||
* include/imagehlp.h (PREAD_PROCESS_MEMORY_ROUTINE): Correct definition.
|
||||
|
|
|
@ -105,7 +105,7 @@ typedef struct _KEY_EVENT_RECORD {
|
|||
}
|
||||
#ifdef __GNUC__
|
||||
/* gcc's alignment is not what win32 expects */
|
||||
PACKED
|
||||
__attribute__((packed))
|
||||
#endif
|
||||
KEY_EVENT_RECORD;
|
||||
|
||||
|
|
|
@ -68,7 +68,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define PACKED __attribute__((packed))
|
||||
#ifndef _fastcall
|
||||
#define _fastcall __attribute__((fastcall))
|
||||
#endif
|
||||
|
@ -93,10 +92,7 @@ extern "C" {
|
|||
#ifndef _declspec
|
||||
#define _declspec(e) __attribute__((e))
|
||||
#endif
|
||||
#elif defined(__WATCOMC__)
|
||||
#define PACKED
|
||||
#else
|
||||
#define PACKED
|
||||
#define _cdecl
|
||||
#define __cdecl
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue