Use workaround for GCC incompatibilities with MSVC aggregate returns

Fixes crash on MinGW builds when ID2D1RenderTarget::GetSize() is called
This commit is contained in:
Zapeth 2019-01-06 12:02:13 +01:00
parent 4b6ebd0532
commit 7630e2d9db
1 changed files with 4 additions and 0 deletions

View File

@ -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>