[PATCH 2/7] include: Convert dcommon.h to IDL.

Henri Verbeet hverbeet at codeweavers.com
Thu Sep 21 15:29:33 CDT 2017


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 include/d2d1.idl                   |  2 +-
 include/{dcommon.h => dcommon.idl} | 17 ++++++++++-------
 include/dwrite.idl                 |  2 +-
 3 files changed, 12 insertions(+), 9 deletions(-)
 rename include/{dcommon.h => dcommon.idl} (90%)

diff --git a/include/d2d1.idl b/include/d2d1.idl
index 4a62f7c..fbfb40d 100644
--- a/include/d2d1.idl
+++ b/include/d2d1.idl
@@ -17,7 +17,7 @@
  */
 
 import "unknwn.idl";
-import "dcommon.h";
+import "dcommon.idl";
 import "d2dbasetypes.h";
 import "d3d10_1.idl";
 import "d2derr.h";
diff --git a/include/dcommon.h b/include/dcommon.idl
similarity index 90%
rename from include/dcommon.h
rename to include/dcommon.idl
index a516e8a..b77ec48 100644
--- a/include/dcommon.h
+++ b/include/dcommon.idl
@@ -16,10 +16,15 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#ifndef __WINE_DCOMMON_H
-#define __WINE_DCOMMON_H
+import "dxgiformat.h";
 
-#include "dxgiformat.h"
+cpp_quote("#if 0")
+typedef struct
+{
+    long x, y;
+} POINT;
+typedef unsigned int UINT32;
+cpp_quote("#endif")
 
 typedef enum DWRITE_MEASURING_MODE
 {
@@ -45,8 +50,8 @@ typedef struct D2D1_PIXEL_FORMAT
 
 typedef struct D2D_POINT_2F
 {
-    FLOAT x;
-    FLOAT y;
+    float x;
+    float y;
 } D2D_POINT_2F, D2D1_POINT_2F;
 
 typedef POINT D2D_POINT_2L, D2D1_POINT_2L;
@@ -56,5 +61,3 @@ typedef struct D2D_SIZE_U
     UINT32 width;
     UINT32 height;
 } D2D_SIZE_U, D2D1_SIZE_U;
-
-#endif /* __WINE_DCOMMON_H */
diff --git a/include/dwrite.idl b/include/dwrite.idl
index 06ae767..115f958 100644
--- a/include/dwrite.idl
+++ b/include/dwrite.idl
@@ -17,7 +17,7 @@
  */
 
 import "unknwn.idl";
-import "dcommon.h";
+import "dcommon.idl";
 
 interface IDWriteFactory;
 interface IDWriteFontCollection;
-- 
2.1.4




More information about the wine-patches mailing list