dwrite_2.idl: Protect from D3DCOLORVALUE redefinition.

This commit is contained in:
Nikolay Sivov 2014-12-12 14:35:49 +03:00 committed by Alexandre Julliard
parent e5d7982c4d
commit 099146a6f9
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,7 @@ typedef struct DWRITE_TEXT_METRICS1
FLOAT heightIncludingTrailingWhitespace;
} DWRITE_TEXT_METRICS1;
cpp_quote("#ifndef D3DCOLORVALUE_DEFINED")
typedef struct _D3DCOLORVALUE
{
union {
@ -66,6 +67,8 @@ typedef struct _D3DCOLORVALUE
FLOAT dvA;
};
} D3DCOLORVALUE;
cpp_quote("#define D3DCOLORVALUE_DEFINED")
cpp_quote("#endif")
typedef D3DCOLORVALUE DWRITE_COLOR_F;