Re: [6] include/ddk/winddk.h
"Filip Navara" <xnavara-VIXq6x/[email protected]> Sun, 14 Dec 2003 09:16:02 +0100
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <022401c3c21a$83bbb140$fc4cb13e@hornet> |
----- Original Message ----- From: "Danny Smith" <[email protected]> To: <[email protected]> Sent: Sunday, December 14, 2003 8:21 AM Subject: Re: [MinGW-patches] [6] include/ddk/winddk.h > > ----- Original Message ----- > From: "Filip Navara" > > Hmm, > Shouldn't this be #ifdef NONAMELESSUNION > [snip] No, this is correct. > Also, it may be cleaner to do something like this: > > #ifdef NONAMELESSUNION > # define DDK_DUMMYUNION_FIELD(name) u.name > # define DDK_DUMMYUNION_N_FIELD(n, name) u##n.name > #else > # define DDK_DUMMYUNION_FIELD(name) name > # define DDK_DUMMYUNION_N_FIELD(n, name) name > #endif > > and use those throughout I agree it would be cleaner to use such macros, but where it should be defined? In winddk.h? Thanks Filip ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click