Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Sat, 1 Sep 2001 10:43:48 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: [PATCH] w32api _ANONYMOUS_STRUCT fix Message-ID: <20010901104348.A20883@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.21i 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 * 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;