summaryrefslogtreecommitdiffstats
path: root/src/iid_ole.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-08-12 13:25:01 +0000
committerBram Moolenaar <Bram@vim.org>2007-08-12 13:25:01 +0000
commit8c69d536ad83c82154748b2637631323361efb26 (patch)
treeff10792f44c2bf47445e5ac10c6750f870d9f764 /src/iid_ole.c
parent708f62c38056b017d090c858036a8f8bf8884da6 (diff)
updated for version 7.1-065v7.1.065
Diffstat (limited to 'src/iid_ole.c')
-rw-r--r--src/iid_ole.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/iid_ole.c b/src/iid_ole.c
index 6ade213fe6..44802d0ef1 100644
--- a/src/iid_ole.c
+++ b/src/iid_ole.c
@@ -16,9 +16,18 @@
extern "C"{
#endif
+#ifdef __MINGW32__
+# include <w32api.h>
+
+# if __W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 10
+ /* This define is missing from older MingW versions of w32api, even though
+ * IID is defined. */
+# define __IID_DEFINED__
+# endif
+#endif
#ifndef __IID_DEFINED__
-#define __IID_DEFINED__
+# define __IID_DEFINED__
typedef struct _IID
{
@@ -28,12 +37,12 @@ typedef struct _IID
unsigned char c[8];
} IID;
-#endif // __IID_DEFINED__
+#endif
#ifndef CLSID_DEFINED
-#define CLSID_DEFINED
+# define CLSID_DEFINED
typedef IID CLSID;
-#endif // CLSID_DEFINED
+#endif
const IID IID_IVim = {0x0F0BFAE2,0x4C90,0x11d1,{0x82,0xD7,0x00,0x04,0xAC,0x36,0x85,0x19}};