Re: V_DECIMAL macro is wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This time, with the patch...sorry.

ChangeLog: include/oleauto.h
 - Fixed V_DECIMAL macro to reflect where the decVal member is actually stored.

Gregg Mattinson
Co-op Developer
Sun Microsystems of Canada
Index: include/oleauto.h
===================================================================
RCS file: /opcom/comp/ws/wine/CVSROOT/wine/include/oleauto.h,v
retrieving revision 1.1
diff -u -r1.1 oleauto.h
--- /tmp/T0hoaGVK       Mon Jul  8 10:59:21 2002
+++ oleauto.h   Mon Jul  8 10:56:25 2002
@@ -180,8 +180,12 @@
 #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

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux