aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZapeth <steami@live.at>2019-01-06 12:02:13 +0100
committerZapeth <steami@live.at>2019-01-06 12:03:01 +0100
commit7630e2d9db49eef820914583bbefd98321ebb395 (patch)
tree8f0de4a0a094f65c6fe80d0b251a88aa12e1eba0 /src
parent4b6ebd053285658d9c4fe81104c8babdaf26d56a (diff)
Use workaround for GCC incompatibilities with MSVC aggregate returns
Fixes crash on MinGW builds when ID2D1RenderTarget::GetSize() is called
Diffstat (limited to 'src')
-rw-r--r--src/libui_sdl/libui/windows/winapi.hpp4
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>