OSDN Git Service

* include/oaidl.h: Include windows.h and ole2.h,
authordannysmith <dannysmith>
Mon, 2 Jul 2007 02:52:56 +0000 (02:52 +0000)
committerdannysmith <dannysmith>
Mon, 2 Jul 2007 02:52:56 +0000 (02:52 +0000)
unless COM_NO_WINDOWS_H.

[ mingw-Bugs-1742130 ]
* include/oaidl.h (struct tagVARIANT): Add union members
LONGLONG  * pllVal and ULONGLONG * pullVal.

winsup/w32api/ChangeLog
winsup/w32api/include/oaidl.h

index 349d9a4..395d362 100644 (file)
@@ -1,3 +1,12 @@
+2007-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * include/oaidl.h: Include windows.h and ole2.h,
+       unless COM_NO_WINDOWS_H.
+
+       [mingw-Bugs-1742130]
+       * include/oaidl.h (struct tagVARIANT): Add union members
+       LONGLONG  * pllVal and ULONGLONG * pullVal.
+
 2007-07-01  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * include/ws2tcpip.h (s6_addr32): Correct definition.
index 8aecd1b..b8a2985 100644 (file)
@@ -1,9 +1,14 @@
 #ifndef _OAIDL_H
 #define _OAIDL_H
-#if __GNUC__ >=3
+#if __GNUC__ >= 3
 #pragma GCC system_header
 #endif
 
+#ifndef COM_NO_WINDOWS_H
+#include <windows.h>
+#include <ole2.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -213,6 +218,7 @@ typedef struct tagVARIANT {
                unsigned char *pbVal;
                short *piVal;
                long *plVal;
+               LONGLONG  * pllVal;
                float *pfltVal;
                double *pdblVal;
                VARIANT_BOOL *pboolVal;
@@ -236,6 +242,7 @@ typedef struct tagVARIANT {
                CHAR  *pcVal;
                USHORT  *puiVal;
                ULONG  *pulVal;
+               ULONGLONG * pullVal;
                INT  *pintVal;
                UINT  *puintVal;
                _ANONYMOUS_STRUCT struct {