This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Newbie question - is it possible to use anonymous unions within structs?


Hi there...
Many Win32 API structures contain constructs like:
typedef struct {
int foo;
union {
int bar;
int foobar;
};
} thestruct;

Is it possible to use such constructs under GCC? It makes it extremely
difficult to compile windows programs which use certain APIs if not...
(eg. mmsystem, ddraw, etc.)  :-(

TIA,
Peter

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]