summaryrefslogtreecommitdiff
path: root/libavutil/bprint.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-07 09:05:28 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-15 19:47:10 -0400
commitd512e74dec756787417b72776eece32466552724 (patch)
treeafd8f87f0c5ffbc05fd532cc504298b331df996b /libavutil/bprint.c
parent663c21d4ac1a011f71fe48a6a8b6934cd2ef1a4b (diff)
downloadffmpeg-d512e74dec756787417b72776eece32466552724.tar.gz
bprint: Remove custom vsnprintf
A proper implementation was introduced in ba537202801d71711f1ef9306a6248dd2d426fa0 for MSVC, and MinGW already has vsnprintf. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavutil/bprint.c')
-rw-r--r--libavutil/bprint.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libavutil/bprint.c b/libavutil/bprint.c
index 08231d23b4..373a492af0 100644
--- a/libavutil/bprint.c
+++ b/libavutil/bprint.c
@@ -27,25 +27,6 @@
#include "error.h"
#include "mem.h"
-#if defined(_WIN32)
-
-static int vsnprintf_fixed(char *s, size_t n, const char *format, va_list va)
-{
- va_list va2;
- int r;
-
- va_copy(va2, va);
- r = vsnprintf(s, n, format, va2);
- va_end(va2);
- if (r == -1)
- r = _vscprintf(format, va);
- return r;
-}
-
-#define vsnprintf vsnprintf_fixed
-
-#endif
-
#define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size))
#define av_bprint_is_allocated(buf) ((buf)->str != (buf)->reserved_internal_buffer)