delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/01/10:44:04

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
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
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 <cgf AT cygnus DOT 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;

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019