From 1e5f0073c6b9d4c91b2319a1999c8303d9b32b10 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 27 Jan 2021 10:58:36 -0800 Subject: [PATCH] Fixed building with mingw64 --- src/render/direct3d11/SDL_render_d3d11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c index d286be3c0..5138aa63e 100644 --- a/src/render/direct3d11/SDL_render_d3d11.c +++ b/src/render/direct3d11/SDL_render_d3d11.c @@ -54,7 +54,11 @@ extern ISwapChainBackgroundPanelNative * WINRT_GlobalSwapChainBackgroundPanelNat #endif /* __WINRT__ */ +#ifdef _MSC_VER #define SDL_COMPOSE_ERROR(str) __FUNCTION__ ", " str +#else +#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str +#endif #define SAFE_RELEASE(X) if ((X)) { IUnknown_Release(SDL_static_cast(IUnknown*, X)); X = NULL; }