Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-03-03 23:24:08 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2004-03-03 23:24:08 +0300
commite299c7addc3ec7f20162a54740dc06cae2a71389 (patch)
tree21c6149eb785ffb7482f4db59ffa55daed538606 /winsup/w32api
parent4149d576c3d9d23d6fee18d9dd346d02a03fa93f (diff)
* include/wtypes.h (DECIMAL_SETZERO): Add definition for
NONAMELESSUNION case.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog5
-rw-r--r--winsup/w32api/include/wtypes.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 070826558..9be431c22 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-02 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/wtypes.h (DECIMAL_SETZERO): Add definition for
+ NONAMELESSUNION case.
+
2004-03-03 Martin Fuchs <martin-fuchs@gmx.net>
* include/oleauto.h (V_UNION, V_VT, V_DECIMAL): Use
diff --git a/winsup/w32api/include/wtypes.h b/winsup/w32api/include/wtypes.h
index 85d1851a8..5192e1325 100644
--- a/winsup/w32api/include/wtypes.h
+++ b/winsup/w32api/include/wtypes.h
@@ -15,7 +15,11 @@ extern "C" {
#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