From 0fbb36c61a8387a23acb25c3d453af9f4fc9b7ab Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 4 Jun 2022 07:02:32 +0200 Subject: [PATCH] (D3D12) Try to fix compilation for mingw toolchains with GCC 12.x and beyond --- gfx/common/d3d12_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/common/d3d12_common.c b/gfx/common/d3d12_common.c index 480a708f3b..4482409cfb 100644 --- a/gfx/common/d3d12_common.c +++ b/gfx/common/d3d12_common.c @@ -36,6 +36,7 @@ #include #ifdef __MINGW32__ +#if __GNUC__ < 12 /* clang-format off */ #ifdef __cplusplus #define DEFINE_GUIDW(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) EXTERN_C const GUID DECLSPEC_SELECTANY name = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } @@ -73,6 +74,7 @@ DEFINE_GUIDW(IID_ID3D12DebugCommandList, 0x09e0bf36, 0x54ac, 0x484f, 0x88, 0x47, #endif /* clang-format on */ #endif +#endif #if defined(HAVE_DYNAMIC) && !defined(__WINRT__) static dylib_t d3d12_dll;