[FFmpeg-devel] mingw-w64 and -D__USE_MINGW_ANSI_STDIO

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Dec 13 17:30:54 CET 2013

On 12/13/2013 1:34 AM, James Almer wrote:
> The reason I wrote this is that the commit merged from libav is now also making 
> configure define __USE_MINGW_ANSI_STDIO on those version where we instead only 
> added mscrt/snprintf.o

It was never actually wrong to add it. Before version 3 of
MinGW-w64, their implementation of vsnprintf was exposed by
default. In version 3, they hid it under that define.

So at worst, using that define in prior versions is a no-op.
At best, it nets us a better printf().

> That's why i asked if using both the compat file and the define on those versions 
> is correct or not, because if not then we should undo the commit in question and 
> put things back like you left them.

It is fine to use the define on all versions.

- Derek

More information about the ffmpeg-devel mailing list