From 005d119caee2f544dba080ec7f77035df8408cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 26 Feb 2021 18:48:43 -0800 Subject: [PATCH] Fixed MinGW warning. --- src/renderer_d3d12.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer_d3d12.h b/src/renderer_d3d12.h index 803fcda30..9f02b03d0 100644 --- a/src/renderer_d3d12.h +++ b/src/renderer_d3d12.h @@ -20,13 +20,14 @@ #if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage. extern "C++" { -# if __cpp_constexpr >= 200704L && __cpp_inline_variables >= 201606L +# if defined(__cpp_constexpr) && __cpp_constexpr >= 200704L \ + && defined(__cpp_inline_variables) && __cpp_inline_variables >= 201606L __extension__ template constexpr const GUID& __mingw_uuidof(); # else __extension__ template const GUID& __mingw_uuidof(); -# endif +# endif // __cpp_* template<> const GUID& __mingw_uuidof()