Use workaround for GCC incompatibilities with MSVC aggregate returns
Fixes crash on MinGW builds when ID2D1RenderTarget::GetSize() is called
This commit is contained in:
parent
4b6ebd0532
commit
7630e2d9db
|
@ -31,6 +31,10 @@
|
||||||
#include <uxtheme.h>
|
#include <uxtheme.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
#include <shobjidl.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 <d2d1.h>
|
||||||
#include <d2d1helper.h>
|
#include <d2d1helper.h>
|
||||||
#include <dwrite.h>
|
#include <dwrite.h>
|
||||||
|
|
Loading…
Reference in New Issue