From 0cb2de3de049fda7efefe21424f8a591aba1fa45 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 25 Jul 2007 10:21:53 +0000 Subject: [PATCH] * include/wtypes.h (LPDECIMAL): Define. (DECIMAL_NEG, DECIMAL_SETZERO): Move definitions. --- winsup/w32api/ChangeLog | 5 +++++ winsup/w32api/include/wtypes.h | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 0dd05b89c..c1ad18f04 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2007-07-25 Danny Smith + + * include/wtypes.h (LPDECIMAL): Define. + (DECIMAL_NEG, DECIMAL_SETZERO): Move definitions. + 2007-07-18 Corinna Vinschen * include/winnt.h (SE_TRUSTED_CREDMAN_ACCESS_NAME): Define. 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 }