diff options
author | Zapeth <steami@live.at> | 2019-01-06 12:02:13 +0100 |
---|---|---|
committer | Zapeth <steami@live.at> | 2019-01-06 12:03:01 +0100 |
commit | 7630e2d9db49eef820914583bbefd98321ebb395 (patch) | |
tree | 8f0de4a0a094f65c6fe80d0b251a88aa12e1eba0 /src/libui_sdl/libui/windows/winapi.hpp | |
parent | 4b6ebd053285658d9c4fe81104c8babdaf26d56a (diff) |
Use workaround for GCC incompatibilities with MSVC aggregate returns
Fixes crash on MinGW builds when ID2D1RenderTarget::GetSize() is called
Diffstat (limited to 'src/libui_sdl/libui/windows/winapi.hpp')
-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> |