diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-09-24 18:44:20 -0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-09-25 18:14:14 -0400 |
commit | 5ae9fa13f5ac640bec113120d540f70971aa635d (patch) | |
tree | 859f54e978977b136151ebac1733c18f1d4de175 /compat/msvcrt/snprintf.c | |
parent | de73ae6b1a3ff0398988dc683f94ea07e3bb1372 (diff) | |
download | ffmpeg-5ae9fa13f5ac640bec113120d540f70971aa635d.tar.gz |
MinGW: Use our snprintf/vsnprintf when MinGW's is broken
All versions of MinGW-w64 prior to version 3, as well as
all versions of MinGW32 have broken implementations of
vsnprintf.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'compat/msvcrt/snprintf.c')
-rw-r--r-- | compat/msvcrt/snprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/msvcrt/snprintf.c b/compat/msvcrt/snprintf.c index 6787aad1c6..c64653fe82 100644 --- a/compat/msvcrt/snprintf.c +++ b/compat/msvcrt/snprintf.c @@ -27,6 +27,10 @@ #include "compat/va_copy.h" #include "libavutil/error.h" +#if defined(__MINGW32__) +#define EOVERFLOW EFBIG +#endif + int avpriv_snprintf(char *s, size_t n, const char *fmt, ...) { va_list ap; |