On Thursday, 16 January 2020 12:55:07 CET [email protected] wrote:
> >> According to that you need to compile with:
> >>
> >> cmake -DCMAKE_C_FLAGS="-D__USE_MINGW_ANSI_STDIO=1" ..
> >
> > Alternative seems to be:
> >
> > -Dsnprintf=__mingw_snprintf -Dvsnprintf=__mingw_vsnprintf ...
>
> Yes i was a bit overhasty with this patch...
>
> I also found that _POSIX_SOURCE does the trick. This would be a bit more
> generic.
>
> But I realized that the binaries get bigger like that, probably because
> they link in more of their own implementations. Not sure, if this is a
> good thing...
>
> -Dsnprintf=__mingw_snprintf -Dvsnprintf=__mingw_vsnprintf looks like a
> good compromise to me. I will also test this.
Which route should we go? Just set _POSIX_SOURCE?
Andreas