This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
[PATCH] w32api _ANONYMOUS_STRUCT fix
- To: cygwin-developers at cygwin dot com
- Subject: [PATCH] w32api _ANONYMOUS_STRUCT fix
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Sat, 1 Sep 2001 10:43:48 -0400
- Reply-To: cygwin-developers at cygwin dot com
The fix below corrects a problem where the anonymous structure part
of LARGE_INTEGER was not being defined (at least it wasn't under gcc
3.01).
cgf
Sat Sep 1 10:40:37 2001 Christopher Faylor <cgf@cygnus.com>
* include/winnt.h: Use defined(_ANONYMOUS_STRUCT) to determine if
anonymous structs are available rather than just testing preprocessor
variable directly.
Index: include/winnt.h
===================================================================
RCS file: /cvs/uberbaum/winsup/w32api/include/winnt.h,v
retrieving revision 1.27
diff -p -r1.27 winnt.h
*** winnt.h 2001/08/31 19:48:04 1.27
--- winnt.h 2001/09/01 14:42:34
*************** typedef union _LARGE_INTEGER {
*** 1705,1711 ****
DWORD LowPart;
LONG HighPart;
} u;
! #if _ANONYMOUS_STRUCT || defined __cplusplus
struct {
DWORD LowPart;
LONG HighPart;
--- 1705,1711 ----
DWORD LowPart;
LONG HighPart;
} u;
! #if defined(_ANONYMOUS_STRUCT) || defined(__cplusplus)
struct {
DWORD LowPart;
LONG HighPart;
*************** typedef union _ULARGE_INTEGER {
*** 1718,1724 ****
DWORD LowPart;
DWORD HighPart;
} u;
! #if _ANONYMOUS_STRUCT || defined __cplusplus
struct {
DWORD LowPart;
DWORD HighPart;
--- 1718,1724 ----
DWORD LowPart;
DWORD HighPart;
} u;
! #if defined(_ANONYMOUS_STRUCT) || defined(__cplusplus)
struct {
DWORD LowPart;
DWORD HighPart;