include: Add missing definitions for LPDIRECT3DRM2 and LPDIRECT3DRM3 (try 3)

Vijay Kiran Kamuju infyquest at gmail.com
Thu Nov 4 15:07:49 CDT 2010


ChangeLog:
---------
include: Add missing definitions for LPDIRECT3DRM2 and LPDIRECT3DRM3
(try 3 - fix a apply failure & build failure)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101104/a8236af0/attachment.htm>
-------------- next part --------------
From 129b6a6b4921eec3def4e6036c8c2fd7bb15d52c Mon Sep 17 00:00:00 2001
From: Vijay Kiran Kamuju <infyquest at gmail.com>
Date: Thu, 4 Nov 2010 16:02:10 -0400
Subject: [PATCH] include: Add missing definitions for LPDIRECT3DRM2 and LPDIRECT3DRM3 (try 3)

---
 include/d3drm.h |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/include/d3drm.h b/include/d3drm.h
index 54beaab..84da2c3 100644
--- a/include/d3drm.h
+++ b/include/d3drm.h
@@ -22,10 +22,13 @@
 
 #include <ddraw.h>
 
-typedef struct IDirect3DRM *LPDIRECT3DRM;
+typedef struct IDirect3DRM *LPDIRECT3DRM, **LPLPDIRECT3DRM;
 
 #include <d3drmobj.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* Direct3DRM Object CLSID */
 DEFINE_GUID(CLSID_CDirect3DRM,              0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
@@ -35,6 +38,9 @@ DEFINE_GUID(IID_IDirect3DRM,                0x2bc49361, 0x8327, 0x11cf, 0xac, 0x
 DEFINE_GUID(IID_IDirect3DRM2,               0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
 DEFINE_GUID(IID_IDirect3DRM3,               0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
 
+typedef struct IDirect3DRM2 *LPDIRECT3DRM2, **LPLPDIRECT3DRM2;
+typedef struct IDirect3DRM3 *LPDIRECT3DRM3, **LPLPDIRECT3DRM3;
+
 HRESULT WINAPI Direct3DRMCreate(LPDIRECT3DRM* ppDirect3DRM);
 
 /*****************************************************************************
@@ -494,4 +500,8 @@ DECLARE_INTERFACE_(IDirect3DRM3,IUnknown)
 #define D3DRMERR_TEXTUREFORMATNOTFOUND  MAKE_DDHRESULT(811)
 #define D3DRMERR_NOTAGGREGATED          MAKE_DDHRESULT(812)
 
+#ifdef __cplusplus
+};
+#endif
+
 #endif /* __D3DRM_H__ */
-- 
1.7.1


More information about the wine-patches mailing list