Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 07:31:24 +0300
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-03-05 07:31:24 +0300
commita4c7da048de198b1aa615bd75b41a51187cf77f4 (patch)
treee445ed5be634e22690ac4015fb5bbdfcefc86f95 /winsup/w32api/include
parentd5071ad7f5afd5971fdc906f8cb335392259ec21 (diff)
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.
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r--winsup/w32api/include/winbase.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h
index a3ce7784e..18f1b7e56 100644
--- a/winsup/w32api/include/winbase.h
+++ b/winsup/w32api/include/winbase.h
@@ -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;
};