From 7630e2d9db49eef820914583bbefd98321ebb395 Mon Sep 17 00:00:00 2001 From: Zapeth Date: Sun, 6 Jan 2019 12:02:13 +0100 Subject: Use workaround for GCC incompatibilities with MSVC aggregate returns Fixes crash on MinGW builds when ID2D1RenderTarget::GetSize() is called --- src/libui_sdl/libui/windows/winapi.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libui_sdl/libui') diff --git a/src/libui_sdl/libui/windows/winapi.hpp b/src/libui_sdl/libui/windows/winapi.hpp index 86aba5d..d31547a 100644 --- a/src/libui_sdl/libui/windows/winapi.hpp +++ b/src/libui_sdl/libui/windows/winapi.hpp @@ -31,6 +31,10 @@ #include #include #include +// workaround for MinGW builds -> https://stackoverflow.com/questions/27888109/rendertarget-getsize-not-working +#ifdef __MINGW32__ +#define WIDL_EXPLICIT_AGGREGATE_RETURNS +#endif #include #include #include -- cgit v1.2.3