From f082ca12e3c1b8eb8ebe5cfe805ffa9702482774 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 15 Nov 2020 06:11:24 +1100 Subject: [PATCH] renderer_d3d12.h: Update __mingw_uuidof declaration for C++17 (#2311) --- src/renderer_d3d12.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer_d3d12.h b/src/renderer_d3d12.h index f01fa9dbe..ea97feda6 100644 --- a/src/renderer_d3d12.h +++ b/src/renderer_d3d12.h @@ -20,8 +20,13 @@ #if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage. extern "C++" { +#if __cpp_constexpr >= 200704L && __cpp_inline_variables >= 201606L + __extension__ template + constexpr const GUID& __mingw_uuidof(); +#else __extension__ template const GUID& __mingw_uuidof(); +#endif template<> const GUID& __mingw_uuidof()