From 773dd7773bb786f7b380a67e1f435754aa35a21e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 22 May 2019 19:46:18 +1000 Subject: [PATCH] [c-host] try to be more compatible with mingw headers --- VERSION | 2 +- c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3df30e71..f2eb088d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-209-g108c7d3aaa+1 \ No newline at end of file +a12-210-g732ce05866+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h b/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h index 6e0d8c83..a0d75d86 100644 --- a/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h +++ b/c-host/platform/Windows/capture/DXGI/src/dxgi_extra.h @@ -26,8 +26,11 @@ HRESULT __stdcall CreateDXGIFactory1(REFIID riid, void **factory); #define D3D_FEATURE_LEVEL_12_0 0xc000 #define D3D_FEATURE_LEVEL_12_1 0xc100 -#ifndef __dxgicommon_h__ +#ifndef DXGI_ERROR_ACCESS_LOST #define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L) +#endif + +#ifndef DXGI_ERROR_WAIT_TIMEOUT #define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L) #endif