From 421660e894d2f7b2c9fa865e37c5780fa46621ea Mon Sep 17 00:00:00 2001 From: Gregg Mattinson Date: Mon, 8 Jul 2002 19:39:45 +0000 Subject: [PATCH] Fixed V_DECIMAL macro to reflect where the decVal member is actually stored. --- include/oleauto.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/oleauto.h b/include/oleauto.h index 0cae376fc62..6b38fea09b3 100644 --- a/include/oleauto.h +++ b/include/oleauto.h @@ -180,8 +180,12 @@ SafeArrayRedim(struct tagSAFEARRAY *psa, struct tagSAFEARRAYBOUND *psaboundNew); #define V_ARRAY(A) V_UNION(A, parray) #define V_ARRAYREF(A) V_UNION(A, pparray) #define V_BYREF(A) V_UNION(A, byref) -#define V_DECIMAL(A) V_UNION(A, decVal) #define V_DECIMALREF(A) V_UNION(A, pdecVal) +#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION) +#define V_DECIMAL(A) ((A)->n1.decVal) +#else +#define V_DECIMAL(A) ((A)->decVal) +#endif /* * VARIANT API