aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2019-01-06 12:27:16 +0100
committerGitHub <noreply@github.com>2019-01-06 12:27:16 +0100
commitdbfb67fe8f6c54cbc3fd58b2a6d09d80ff7b6237 (patch)
tree8f0de4a0a094f65c6fe80d0b251a88aa12e1eba0
parent4b6ebd053285658d9c4fe81104c8babdaf26d56a (diff)
parent7630e2d9db49eef820914583bbefd98321ebb395 (diff)
Merge pull request #356 from Zapeth/master
Use workaround for GCC incompatibilities with MSVC aggregate returns
-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>