[PATCH] include: Simply forward declare the required D2D interfaces in wincodec.idl.

Henri Verbeet hverbeet at codeweavers.com
Fri Jun 16 05:18:25 CDT 2017


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 include/wincodec.idl | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/include/wincodec.idl b/include/wincodec.idl
index 1ea6e0e..2a80876 100644
--- a/include/wincodec.idl
+++ b/include/wincodec.idl
@@ -218,14 +218,9 @@ cpp_quote("DEFINE_GUID(GUID_WICPixelFormat64bppPRGBA, 0x6fddc324,0x4e03,0x4bfe,0
 cpp_quote("DEFINE_GUID(GUID_WICPixelFormat32bppCMYK, 0x6fddc324,0x4e03,0x4bfe,0xb1,0x85,0x3d,0x77,0x76,0x8d,0xc9,0x1c);")
 
 cpp_quote("#if 0")
-typedef DWORD *ID2D1Device;
-typedef DWORD *ID2D1Image;
 typedef DWORD *D2D1_PIXEL_FORMAT;
 cpp_quote ("#endif")
 
-cpp_quote ("typedef interface ID2D1Device ID2D1Device;")
-cpp_quote ("typedef interface ID2D1Image ID2D1Image;")
-
 typedef struct WICRect {
     INT X;
     INT Y;
@@ -254,6 +249,8 @@ typedef struct WICImageParameters
 
 typedef UINT32 WICColor;
 
+interface ID2D1Device;
+interface ID2D1Image;
 interface IWICPalette;
 
 [
-- 
2.1.4




More information about the wine-patches mailing list