From: Fabian Maurer Subject: [PATCH] dxva2api.idl: Don't redefine REFERENCE_TIME if it's already defined Message-Id: <20171001191016.28170-1-dark.shadow4@web.de> Date: Sun, 1 Oct 2017 21:10:16 +0200 Fixes a compilation issue with old gcc, see Bug 43777. Signed-off-by: Fabian Maurer --- 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