Re: wtypes.h

Danny Smith <[email protected]> Tue, 02 Mar 2004 09:16:13 +0000
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <000401c40037$0424d320$716d65da@DANNY>
----- Original Message -----
From: "Martin Fuchs"


Martin, I've commited your submissions, with the exception of this:

Changelog:
* include/wtypes.h (DEC_...): define macros for accessing DECIMAL
structure
* include/wtypes.h (DECIMAL_SETZERO): use DEC_... macros in
DECIMAL_SETZERO macro to be compiler independed

That looks  wrong to me.

is this what you meant?

#ifdef NONAMELESSUNION
#define DECIMAL_SETZERO(d) \
  {(d).u2.Lo64=(d).u2.s2.Hi32=(d).u.signscale=0;}
#else
#define DECIMAL_SETZERO(d) \
  {(d).Lo64=(d).Hi32=(d).signscale=0;}
#endif
#endif



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click