[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] Use inttypes macros for size_t format string
  [Thread Prev] | [Thread Next]
 
 
- Subject: Re: [patch] Use inttypes macros for size_t format string
 - From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
 - Reply-to: libssh@xxxxxxxxxx
 - Date: Wed, 22 Jan 2020 08:49:21 +0100
 - To: libssh@xxxxxxxxxx
 - Cc: g4-lisz@xxxxxxxxxxxx
 
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
| Re: [patch] Use inttypes macros for size_t format string | Tilo Eckert <tilo.eckert@xxxxxxx> | 
| [patch] Use inttypes macros for size_t format string | g4-lisz@xxxxxxxxxxxx | 
| Re: [patch] Use inttypes macros for size_t format string | Andreas Schneider <asn@xxxxxxxxxxxxxx> | 
| Re: [patch] Use inttypes macros for size_t format string | g4-lisz@xxxxxxxxxxxx |