diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2007-07-25 14:21:53 +0400 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2007-07-25 14:21:53 +0400 |
commit | 0cb2de3de049fda7efefe21424f8a591aba1fa45 (patch) | |
tree | 9edfa337f933c18f14b099f9f65e3f5efb1b87bf /winsup/w32api/include | |
parent | fdcfcea4fc160eda6bf93b719a273dcd38ee4ede (diff) |
* include/wtypes.h (LPDECIMAL): Define.
(DECIMAL_NEG, DECIMAL_SETZERO): Move definitions.
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r-- | winsup/w32api/include/wtypes.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/winsup/w32api/include/wtypes.h b/winsup/w32api/include/wtypes.h index 5192e1325..37f2af2cc 100644 --- a/winsup/w32api/include/wtypes.h +++ b/winsup/w32api/include/wtypes.h @@ -14,12 +14,6 @@ extern "C" { #define IID_NULL GUID_NULL #define CLSID_NULL GUID_NULL #define CBPCLIPDATA(d) ((d).cbSize-sizeof((d).ulClipFmt)) -#define DECIMAL_NEG ((BYTE)0x80) -#ifdef NONAMELESSUNION -#define DECIMAL_SETZERO(d) {(d).DUMMYUNIONNAME2.Lo64=(d).Hi32=(d).DUMMYUNIONNAME.signscale=0;} -#else -#define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;} -#endif #define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x01 #define ROTFLAGS_ALLOWANYCLIENT 0x02 @@ -163,6 +157,13 @@ typedef struct tagDEC { ULONGLONG Lo64; } DUMMYUNIONNAME2; } DECIMAL; +typedef DECIMAL *LPDECIMAL; +#define DECIMAL_NEG ((BYTE)0x80) +#ifdef NONAMELESSUNION +#define DECIMAL_SETZERO(d) {(d).DUMMYUNIONNAME2.Lo64=(d).Hi32=(d).DUMMYUNIONNAME.signscale=0;} +#else +#define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;} +#endif typedef void *HMETAFILEPICT; #ifdef __cplusplus } |