[PATCH] dxva2api.idl: Don't redefine REFERENCE_TIME if it's already defined
Fabian Maurer
dark.shadow4 at web.de
Sun Oct 1 14:10:16 CDT 2017
Fixes a compilation issue with old gcc, see Bug 43777.
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
include/dxva2api.idl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/dxva2api.idl b/include/dxva2api.idl
index 8739b8239d..8dd1d96133 100644
--- a/include/dxva2api.idl
+++ b/include/dxva2api.idl
@@ -86,7 +86,10 @@ cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D")
/* Encryption */
cpp_quote("DEFINE_GUID(DXVA_NoEncrypt, 0x1b81bed0, 0xa0c7,0x11d3, 0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
+cpp_quote("#ifndef REFERENCE_TIME_DEFINED")
+cpp_quote("#define REFERENCE_TIME_DEFINED")
typedef LONGLONG REFERENCE_TIME;
+cpp_quote("#endif")
enum
{
--
2.14.2
More information about the wine-patches
mailing list