From acaf6c9e877dbf37d03032203b0dfc4814241c81 Mon Sep 17 00:00:00 2001 From: pchome Date: Sat, 7 Apr 2018 15:02:57 +0300 Subject: [PATCH] [d3d11] Fix compilation with WINE headers (#247) All this structures are defined in WINE headers but `D3D11_FORMAT_SUPPORT2`. --- src/d3d11/d3d11_include.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_include.h b/src/d3d11/d3d11_include.h index 2367c89f..65a4df2c 100644 --- a/src/d3d11/d3d11_include.h +++ b/src/d3d11/d3d11_include.h @@ -39,6 +39,7 @@ typedef enum D3D11_FORMAT_SUPPORT2 { D3D11_FORMAT_SUPPORT2_SHAREABLE = 0x400, D3D11_FORMAT_SUPPORT2_MULTIPLANE_OVERLAY = 0x4000 } D3D11_FORMAT_SUPPORT2; +#ifndef __WINE__ typedef struct D3D11_FEATURE_DATA_FORMAT_SUPPORT2 { DXGI_FORMAT InFormat; UINT OutFormatSupport2; @@ -88,4 +89,5 @@ typedef struct D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT { typedef struct D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT { BOOL SupportsDepthAsTextureWithLessEqualComparisonFilter; } D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT; -#endif \ No newline at end of file +#endif // __WINE__ +#endif // _MSC_VER