2001-09-11 Danny Smith <dannysmith@users.sourceforge.net>

* include/winnt.h (_[U]LARGE_INTEGER): Protect nameless struct with
	!defined(NONAMELESSUNION), rather than defined(_ANONYMOUS_STRUCT).
	(_REPARSE_DATA_BUFFER): Name union field DUMMYUNIONNAME.
This commit is contained in:
Earnie Boyd 2001-09-12 14:08:53 +00:00
parent aed6988a36
commit e078566ced
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2001-09-11 Danny Smith <dannysmith@users.sourceforge.net>
* include/winnt.h (_[U]LARGE_INTEGER): Protect nameless struct with
!defined(NONAMELESSUNION), rather than defined(_ANONYMOUS_STRUCT).
(_REPARSE_DATA_BUFFER): Name union field DUMMYUNIONNAME.
2001-09-05 Danny Smith <dannysmith@users.sourceforge.net> 2001-09-05 Danny Smith <dannysmith@users.sourceforge.net>
* include/wininet.h (InternetAutodial): Add prototype. * include/wininet.h (InternetAutodial): Add prototype.

View File

@ -1705,12 +1705,12 @@ typedef union _LARGE_INTEGER {
DWORD LowPart; DWORD LowPart;
LONG HighPart; LONG HighPart;
} u; } u;
#if defined(_ANONYMOUS_STRUCT) || defined(__cplusplus) #if ! defined(NONAMELESSUNION) || defined(__cplusplus)
struct { struct {
DWORD LowPart; DWORD LowPart;
LONG HighPart; LONG HighPart;
}; };
#endif /* _ANONYMOUS_STRUCT */ #endif /* NONAMELESSUNION */
LONGLONG QuadPart; LONGLONG QuadPart;
} LARGE_INTEGER, *PLARGE_INTEGER; } LARGE_INTEGER, *PLARGE_INTEGER;
typedef union _ULARGE_INTEGER { typedef union _ULARGE_INTEGER {
@ -1718,12 +1718,12 @@ typedef union _ULARGE_INTEGER {
DWORD LowPart; DWORD LowPart;
DWORD HighPart; DWORD HighPart;
} u; } u;
#if defined(_ANONYMOUS_STRUCT) || defined(__cplusplus) #if ! defined(NONAMELESSUNION) || defined(__cplusplus)
struct { struct {
DWORD LowPart; DWORD LowPart;
DWORD HighPart; DWORD HighPart;
}; };
#endif /* _ANONYMOUS_STRUCT */ #endif /* NONAMELESSUNION */
ULONGLONG QuadPart; ULONGLONG QuadPart;
} ULARGE_INTEGER, *PULARGE_INTEGER; } ULARGE_INTEGER, *PULARGE_INTEGER;
typedef LARGE_INTEGER LUID,*PLUID; typedef LARGE_INTEGER LUID,*PLUID;
@ -2502,7 +2502,7 @@ typedef struct _REPARSE_DATA_BUFFER {
struct { struct {
BYTE DataBuffer[1]; BYTE DataBuffer[1];
} GenericReparseBuffer; } GenericReparseBuffer;
}; } DUMMYUNIONNAME;
} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
typedef struct _REPARSE_GUID_DATA_BUFFER { typedef struct _REPARSE_GUID_DATA_BUFFER {
DWORD ReparseTag; DWORD ReparseTag;