Explorar o código

Fixed MinGW warning.

Branimir Karadžić %!s(int64=4) %!d(string=hai) anos
pai
achega
005d119cae
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/renderer_d3d12.h

+ 3 - 2
src/renderer_d3d12.h

@@ -20,13 +20,14 @@
 
 
 #if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage.
 #if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage.
 extern "C++" {
 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<typename Ty>
 	__extension__ template<typename Ty>
 	constexpr const GUID& __mingw_uuidof();
 	constexpr const GUID& __mingw_uuidof();
 #	else
 #	else
 	__extension__ template<typename Ty>
 	__extension__ template<typename Ty>
 	const GUID& __mingw_uuidof();
 	const GUID& __mingw_uuidof();
-#	endif
+#	endif // __cpp_*
 
 
 	template<>
 	template<>
 	const GUID& __mingw_uuidof<ID3D12Device>()
 	const GUID& __mingw_uuidof<ID3D12Device>()