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:
Chris Sutcliffe
2011-04-22 00:10:07 +00:00
parent a491557a55
commit 8ba4144d50
3 changed files with 8 additions and 5 deletions

View File

@ -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