diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libui_sdl/libui/windows/winapi.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <uxtheme.h> #include <windowsx.h> #include <shobjidl.h> +// workaround for MinGW builds -> https://stackoverflow.com/questions/27888109/rendertarget-getsize-not-working +#ifdef __MINGW32__ +#define WIDL_EXPLICIT_AGGREGATE_RETURNS +#endif #include <d2d1.h> #include <d2d1helper.h> #include <dwrite.h> |