From: Earnie B. <ear...@ya...> - 2001-08-29 14:07:20
|
This change has broken the build of Cygwin. ../../../../src/winsup/cygwin/fhandler_floppy.cc: In method `off_t fhandler_dev_floppy::lseek(long int, int)': ../../../../src/winsup/cygwin/fhandler_floppy.cc:109: `union _LARGE_INTEGER' has no member named `LowPart' ../../../../src/winsup/cygwin/fhandler_floppy.cc:120: `union _LARGE_INTEGER' has no member named `LowPart' ../../../../src/winsup/cygwin/fhandler_floppy.cc:121: `union _LARGE_INTEGER' has no member named `LowPart' Earnie. |
From: <dan...@ya...> - 2001-08-29 20:28:05
|
--- Earnie Boyd <ear...@ya...> wrote: > This change has broken the build of Cygwin. > I see the problem. _ANONYMOUS_STRUCT is undefined if __cplusplus (because its part of C++ standard, not __extension__) I will revert change later today (unless you beat me to it) and try to find a different way of doing it. Danny > ../../../../src/winsup/cygwin/fhandler_floppy.cc: In method `off_t > fhandler_dev_floppy::lseek(long int, int)': > ../../../../src/winsup/cygwin/fhandler_floppy.cc:109: `union > _LARGE_INTEGER' has no member named `LowPart' > ../../../../src/winsup/cygwin/fhandler_floppy.cc:120: `union > _LARGE_INTEGER' has no member named `LowPart' > ../../../../src/winsup/cygwin/fhandler_floppy.cc:121: `union > _LARGE_INTEGER' has no member named `LowPart' > > Earnie. > ATTACHMENT part 2 message/rfc822 > To: min...@li... > From: Danny Smith <dan...@us...> > Subject: [MinGW-cvs] CVS: w32api/include winnt.h,1.4,1.5 > Reply-to: no...@so...sts > Date: Tue, 28 Aug 2001 14:56:18 -0700 > > This list will notify you of updates to the code stored in CVS. > Typically only developers with access to update the CVS are > interested in this list. However, this list can be beneficial to see > what is happening with your changes. If you wish to unsubscribe > please do so at > http://lists.sourceforge.net/lists/listinfo/mingw-cvs.Update of > /cvsroot/mingw/w32api/include > In directory usw-pr-cvs1:/tmp/cvs-serv10075/w32api/include > > Modified Files: > winnt.h > Log Message: > * include\winnt.h: Allow anonymous (Xxx.LowPart) or > non-anonymous (Xxx.u.LowPart) access to HighPart and > LowPart of a LARGE_INTEGER or ULARGE_INTEGER. > > > > Index: winnt.h > =================================================================== > RCS file: /cvsroot/mingw/w32api/include/winnt.h,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -C2 -d -r1.4 -r1.5 > *** winnt.h 2001/08/15 02:52:26 1.4 > --- winnt.h 2001/08/28 21:56:16 1.5 > *************** > *** 1702,1720 **** > } EXCEPTION_POINTERS,*PEXCEPTION_POINTERS,*LPEXCEPTION_POINTERS; > typedef union _LARGE_INTEGER { > ! _ANONYMOUS_STRUCT struct { > ! DWORD LowPart; > ! LONG HighPart; > ! }_STRUCT_NAME(u); > ! LONGLONG QuadPart; > ! } LARGE_INTEGER; > ! typedef LARGE_INTEGER *PLARGE_INTEGER; > typedef union _ULARGE_INTEGER { > ! _ANONYMOUS_STRUCT struct { > ! DWORD LowPart; > ! DWORD HighPart; > ! }_STRUCT_NAME(u); > ! DWORDLONG QuadPart; > ! } ULARGE_INTEGER; > ! typedef ULARGE_INTEGER *PULARGE_INTEGER; > typedef LARGE_INTEGER LUID,*PLUID; > #pragma pack(push,4) > --- 1702,1730 ---- > } EXCEPTION_POINTERS,*PEXCEPTION_POINTERS,*LPEXCEPTION_POINTERS; > typedef union _LARGE_INTEGER { > ! struct { > ! DWORD LowPart; > ! LONG HighPart; > ! } u; > ! #if _ANONYMOUS_STRUCT > ! struct { > ! DWORD LowPart; > ! LONG HighPart; > ! }; > ! #endif /* _ANONYMOUS_STRUCT */ > ! LONGLONG QuadPart; > ! } LARGE_INTEGER, *PLARGE_INTEGER; > typedef union _ULARGE_INTEGER { > ! struct { > ! DWORD LowPart; > ! DWORD HighPart; > ! } u; > ! #if _ANONYMOUS_STRUCT > ! struct { > ! DWORD LowPart; > ! DWORD HighPart; > ! }; > ! #endif /* _ANONYMOUS_STRUCT */ > ! ULONGLONG QuadPart; > ! } ULARGE_INTEGER, *PULARGE_INTEGER; > typedef LARGE_INTEGER LUID,*PLUID; > #pragma pack(push,4) > > > _______________________________________________ > MinGW-cvs mailing list > Min...@li... > http://lists.sourceforge.net/lists/listinfo/mingw-cvs > http://travel.yahoo.com.au - Yahoo! Travel - Got Itchy feet? Get inspired! |
From: <dan...@ya...> - 2001-08-29 21:28:28
|
--- Danny Smith <dan...@ya...> wrote: > --- Earnie Boyd <ear...@ya...> wrote: > This change has > broken the build of Cygwin. > > > > I see the problem. _ANONYMOUS_STRUCT is undefined if __cplusplus > (because its part of C++ standard, not __extension__) I will revert > change later today (unless you beat me to it) and try to find a > different way of doing it. > > Danny This should fix: 2001-08-30 Danny Smith <dan...@us...> * include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER if __cplusplus. --- winnt.h.Eric Mon Aug 27 16:44:04 2001 +++ winnt.h Thu Aug 30 08:42:02 2001 @@ -1705,7 +1705,7 @@ typedef union _LARGE_INTEGER { DWORD LowPart; LONG HighPart; } u; -#if _ANONYMOUS_STRUCT +#if _ANONYMOUS_STRUCT || defined __cplusplus struct { DWORD LowPart; LONG HighPart; @@ -1718,7 +1718,7 @@ typedef union _ULARGE_INTEGER { DWORD LowPart; DWORD HighPart; } u; -#if _ANONYMOUS_STRUCT +#if _ANONYMOUS_STRUCT || defined __cplusplus struct { DWORD LowPart; DWORD HighPart; http://travel.yahoo.com.au - Yahoo! Travel - Got Itchy feet? Get inspired! |
From: Earnie B. <ear...@ya...> - 2001-08-30 04:47:37
|
Danny Smith wrote: > > --- Danny Smith <dan...@ya...> wrote: > --- Earnie > Boyd <ear...@ya...> wrote: > This change has > > broken the build of Cygwin. > > > > > > > I see the problem. _ANONYMOUS_STRUCT is undefined if __cplusplus > > (because its part of C++ standard, not __extension__) I will revert > > change later today (unless you beat me to it) and try to find a > > different way of doing it. > > > > Danny > > This should fix: > It did. > 2001-08-30 Danny Smith <dan...@us...> > > * include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER > if __cplusplus. > > --- winnt.h.Eric Mon Aug 27 16:44:04 2001 > +++ winnt.h Thu Aug 30 08:42:02 2001 > @@ -1705,7 +1705,7 @@ typedef union _LARGE_INTEGER { > DWORD LowPart; > LONG HighPart; > } u; > -#if _ANONYMOUS_STRUCT > +#if _ANONYMOUS_STRUCT || defined __cplusplus > struct { > DWORD LowPart; > LONG HighPart; > @@ -1718,7 +1718,7 @@ typedef union _ULARGE_INTEGER { > DWORD LowPart; > DWORD HighPart; > } u; > -#if _ANONYMOUS_STRUCT > +#if _ANONYMOUS_STRUCT || defined __cplusplus > struct { > DWORD LowPart; > DWORD HighPart; > Thanks, Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |