Re: [Mingw-w64-public] [PATCH 1/2] crt: Add fallback _vscprintf() implementation

2022-01-16 Thread Martin Storsjö
On Sat, 15 Jan 2022, Pali Rohár wrote: In attachment are updated patches which adds these redirects and usage of F_NON_I386() macro. With these redirects it is possible to compile target mingw applications also with those gcc linker flags -Wl,--disable-auto-import -Wl,--disable-runtime-pseudo-re

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Nikolay Sivov
On 1/16/22 15:26, Luca Bacci wrote: Probably many of you already know about that blog post by Raymond Chen, but I'll post a link here anyway because it's relevant to this discussion: https://devblogs.microsoft.com/oldnewthing/20220113-00/?p=106152 I never heard of it. I tested just now with

[Mingw-w64-public] [PATCH] crt: Fix v*scanf functions

2022-01-16 Thread Pali Rohár
Currently v*scanf functions are broken and crash when are called with more than 30 arguments in va_list. This is because va_list v*scanf functions are redirected to variadic *scanf functions and this redirect implemented in scanf.S file has fixed limit for 30 arguments. Number of arguments for msv

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Luca Bacci
Probably many of you already know about that blog post by Raymond Chen, but I'll post a link here anyway because it's relevant to this discussion: https://devblogs.microsoft.com/oldnewthing/20220113-00/?p=106152 Il dom 16 gen 2022, 11:52 Vincent Torri ha scritto: > On Sun, Jan 16, 2022 at 10:44

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Vincent Torri
On Sun, Jan 16, 2022 at 10:44 AM Martin Mitáš wrote: > > > Hello. > > I was dealing with this exact problem some time ago. > > Note the problem is wider. At certain point in time, Microsoft stopped to > care about C compatibility of (some of) their SDK headers. This includes > GDI+ and Direct2D AP

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Vincent Torri
On Sun, Jan 16, 2022 at 10:18 AM Nikolay Sivov wrote: > > > > On 1/16/22 10:06, Vincent Torri wrote: > > hello > > > > On Sat, Jan 15, 2022 at 9:28 AM Vincent Torri > > wrote: > >> On Sat, Jan 15, 2022 at 7:43 AM Nikolay Sivov > >> wrote: > >>> > >>> > >>> On 1/14/22 23:05, Vincent Torri wrote

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Martin Mitáš
Hello. I was dealing with this exact problem some time ago. Note the problem is wider. At certain point in time, Microsoft stopped to care about C compatibility of (some of) their SDK headers. This includes GDI+ and Direct2D APIs for example. I.e. even if you somehow make it work with mingw-w

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-16 Thread Nikolay Sivov
On 1/16/22 10:06, Vincent Torri wrote: hello On Sat, Jan 15, 2022 at 9:28 AM Vincent Torri wrote: On Sat, Jan 15, 2022 at 7:43 AM Nikolay Sivov wrote: On 1/14/22 23:05, Vincent Torri wrote: On Fri, Jan 14, 2022 at 6:31 PM Nikolay Sivov wrote: on the contrary, CreateBitmap(), DrawBitma