2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

* include/winbase.h (__MINGW_EXTENSION): Define.
        (OVERLAPPED): Add __MINGW_EXTENSION around nameless union /
        struct to correct issue with -std=c99.
This commit is contained in:
Chris Sutcliffe 2011-03-05 04:31:24 +00:00
parent d5071ad7f5
commit a4c7da048d
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (__MINGW_EXTENSION): Define.
(OVERLAPPED): Add __MINGW_EXTENSION around nameless union /
struct to correct issue with -std=c99.
2011-03-02 Corinna Vinschen <corinna@vinschen.de>
* include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.

View File

@ -4,6 +4,12 @@
#pragma GCC system_header
#endif
#ifdef __GNUC__
#define __MINGW_EXTENSION __extension__
#else
#define __MINGW_EXTENSION
#endif
#ifndef WINBASEAPI
#ifdef __W32API_USE_DLLIMPORT__
#define WINBASEAPI DECLSPEC_IMPORT
@ -833,8 +839,8 @@ typedef struct _DEBUG_EVENT {
typedef struct _OVERLAPPED {
ULONG_PTR Internal;
ULONG_PTR InternalHigh;
union {
struct {
__MINGW_EXTENSION union {
__MINGW_EXTENSION struct {
DWORD Offset;
DWORD OffsetHigh;
};