* 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.
This commit is contained in:
Earnie Boyd
2001-04-17 12:58:06 +00:00
parent 8aefe7c08b
commit 91874e20bf
11 changed files with 66 additions and 48 deletions

View File

@ -807,9 +807,9 @@ typedef enum _GET_FILEEX_INFO_LEVELS {
GetFileExMaxInfoLevel
} GET_FILEEX_INFO_LEVELS;
typedef struct _SYSTEM_INFO {
union {
_ANONYMOUS_UNION union {
DWORD dwOemId;
struct {
_ANONYMOUS_STRUCT struct {
WORD wProcessorArchitecture;
WORD wReserved;
} DUMMYSTRUCTNAME;
@ -897,7 +897,7 @@ typedef struct _PROCESS_HEAP_ENTRY {
BYTE cbOverhead;
BYTE iRegionIndex;
WORD wFlags;
union {
_ANONYMOUS_UNION union {
struct {
HANDLE hMem;
DWORD dwReserved[3];