diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-09-22 18:29:32 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-09-22 18:29:36 +1000 |
commit | 1c7e3f100f4ff51be2ac85a1d21d2b6f2926ea39 (patch) | |
tree | f15ea190d793ef717ffee42406bc116bd66be9f7 /include | |
parent | e0ac5d46f0e8d3b3394d794f1e2ec201b0043c94 (diff) | |
download | flac-1c7e3f100f4ff51be2ac85a1d21d2b6f2926ea39.tar.gz |
Windows specific vsnprintf fixes.
* Changes flac_snprintf (in src/share/grabbag/snprintf.c) and its copy
local_snprintf (src/libFLAC/metadata_iterators.c) to be almost sane.
* Adds flac_vsnprintf (src/share/grabbag/snprintf.c) and its copy
local_vsnprintf (src/share/win_utf8_io/win_utf8_io.c).
* Changes stats_print_info in src/flac/utils.c so it uses flac_vsnprintf
instead of vsnprintf. This makes return value checking unnecessary.
Patch-from: lvqcl <lvqcl.mail@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/share/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/share/compat.h b/include/share/compat.h index 3ae9d8d4..db5f7ca2 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -188,10 +188,12 @@ * * This function wraps the MS version to behave more like the the ISO version. */ +#include <stdarg.h> #ifdef __cplusplus extern "C" { #endif int flac_snprintf(char *str, size_t size, const char *fmt, ...); +int flac_vsnprintf(char *str, size_t size, const char *fmt, va_list va); #ifdef __cplusplus }; #endif |