[FFmpeg-devel] [PATCH] lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.

jamal jamrial at gmail.com
Mon Aug 27 05:40:38 CEST 2012

On 26/08/12 11:55 PM, Ronald S. Bultje wrote:
> From: "Ronald S. Bultje" <rsbultje at gmail.com>
> ---
Wouldn't it be better to use libavformat/os_support.h and os_support.c for this? It already has quite a few Windows specific implementations like lseek, stat, fstat, getaddrinfo and gai_strerror.
Instead of using this new force_include() configure function and separate files in the compat folder, os_support.h/c can simply check for HAVE_SNPRINTF and HAVE_BROKEN_STRTOD and compile what's needed, as it already does for other stuff.
os_support.h would then have to be included on every source file that uses snprintf and strtod (Quite a few of them already do for other functions, even).


More information about the ffmpeg-devel mailing list