[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] Use inttypes macros for size_t format string


On Thursday, 16 January 2020 12:55:07 CET g4-lisz@xxxxxxxxxxxx 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



Follow-Ups:
Re: [patch] Use inttypes macros for size_t format stringTilo Eckert <tilo.eckert@xxxxxxx>
Archive administrator: postmaster@lists.cynapses.org