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;