* include/winbase.h (__MINGW_EXTENSION): Define.
(OVERLAPPED): Add __MINGW_EXTENSION around nameless union /
struct to correct issue with -std=c99.
+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.
#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
typedef struct _OVERLAPPED {
ULONG_PTR Internal;
ULONG_PTR InternalHigh;
- union {
- struct {
+ __MINGW_EXTENSION union {
+ __MINGW_EXTENSION struct {
DWORD Offset;
DWORD OffsetHigh;
};