diff --git a/src/libui_sdl/libui/windows/winapi.hpp b/src/libui_sdl/libui/windows/winapi.hpp index 86aba5d7..d31547ad 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