diff options
author | Earnie Boyd <earnie@users.sf.net> | 2001-04-17 16:58:06 +0400 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2001-04-17 16:58:06 +0400 |
commit | 91874e20bf881a7b519c2eeae57b07f456138f79 (patch) | |
tree | 2397d5f1b24de22c566c84393422b3f062a07e00 /winsup/w32api/include/windows.h | |
parent | 8aefe7c08b95d736d9e4ed7eee6bfd971191a67f (diff) |
* include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
as __extenstion__ when appropriate.
* include/mmsystem.h: Mark anonymous structs and unions as
__extension__ to prevent compiler warning when invoked with
-pedantic
* include/oaidl.h: Ditto.
* include/objidl.h: Ditto.
* include/olectl.h: Ditto.
* include/prsht.h: Ditto.
* include/shlobj.h: Ditto.
* include/winbase.h: Ditto.
* include/winnt.h: Ditto.
* include/wtypes.h: Ditto.
Diffstat (limited to 'winsup/w32api/include/windows.h')
-rw-r--r-- | winsup/w32api/include/windows.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/w32api/include/windows.h b/winsup/w32api/include/windows.h index 59fc63496..3b9273a97 100644 --- a/winsup/w32api/include/windows.h +++ b/winsup/w32api/include/windows.h @@ -42,18 +42,19 @@ #ifdef __GNUC__ #ifndef NONAMELESSUNION -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) -#define _ANONYMOUS_UNION -#define _ANONYMOUS_STRUCT +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) +#define _ANONYMOUS_UNION __extension__ +#define _ANONYMOUS_STRUCT __extension__ #else #if defined(__cplusplus) -#define _ANONYMOUS_UNION +#define _ANONYMOUS_UNION __extension__ #endif #endif /* __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) */ #endif /* NONAMELESSUNION */ #endif /* __GNUC__ */ #ifndef _ANONYMOUS_UNION +#define _ANONYMOUS_UNION #define _UNION_NAME(x) x #define DUMMYUNIONNAME u #define DUMMYUNIONNAME2 u2 @@ -75,6 +76,7 @@ #define DUMMYUNIONNAME8 #endif #ifndef _ANONYMOUS_STRUCT +#define _ANONYMOUS_STRUCT #define _STRUCT_NAME(x) x #define DUMMYSTRUCTNAME s #define DUMMYSTRUCTNAME2 s2 |