Re: [Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-24 Thread Arthur Girardi
> So, yes, you are right, the mingw-w64 definitions are broken. I think > inline wrappers are necessary to work around the calling convention > problem. Patches are welcome. > And what could be said about the SIGSERV problem with gcc 9? That's actually what I intended to report with the original p

Re: [Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-23 Thread Arthur Girardi
> > > > > > Could you post your converted source somewhere? It could be an > issue > > > with > > > > > particular method prototype, > > > > > for example for GetSize() correct C prototype would be: > > > > > > > > > > D2D1_SIZE_F * target_GetSize(ID2D1HwndRenderTarget *iface, > > D2D1_SIZE_F > > >

Re: [Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-23 Thread Arthur Girardi
> > > Could you post your converted source somewhere? It could be an issue > with > > > particular method prototype, > > > for example for GetSize() correct C prototype would be: > > > > > > D2D1_SIZE_F * target_GetSize(ID2D1HwndRenderTarget *iface, D2D1_SIZE_F > > > *size) > > > > > > > I've uploa

Re: [Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-23 Thread Arthur Girardi
Em sáb., 23 de nov. de 2019 às 14:27, Nikolay Sivov escreveu: > On Sat, Nov 23, 2019 at 8:12 PM Arthur Girardi > wrote: > > > > > I'm building the WIC Viewer using Direct2D[1] sample from Microsoft, > > > > converted to C, and I'm g

Re: [Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-23 Thread Arthur Girardi
> > I'm building the WIC Viewer using Direct2D[1] sample from Microsoft, > > converted to C, and I'm getting some strange SIGSERV at the function > > ID2D1HwndRenderTarget_GetSize(m_pRT) when the program is compiled with > gcc > > 9.x on a x86_64 system. No problem occurs when compiled with any gcc

[Mingw-w64-public] ID2D1HwndRenderTarget_GetSize() SIGSERV with gcc 9.2

2019-11-22 Thread Arthur Girardi
Hello, I'm building the WIC Viewer using Direct2D[1] sample from Microsoft, converted to C, and I'm getting some strange SIGSERV at the function ID2D1HwndRenderTarget_GetSize(m_pRT) when the program is compiled with gcc 9.x on a x86_64 system. No problem occurs when compiled with any gcc 8.x x86_