Mercurial > mplayer.hg
changeset 2906:2ec3ec904cd4
Try to provide a vsscanf() implementation, if the system does not have
vsscanf()
author | jkeil |
---|---|
date | Wed, 14 Nov 2001 19:06:58 +0000 |
parents | 8927ef5c4870 |
children | 33c720ea4654 |
files | loader/win32.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Wed Nov 14 19:02:39 2001 +0000 +++ b/loader/win32.c Wed Nov 14 19:06:58 2001 +0000 @@ -47,7 +47,20 @@ #include <kstat.h> #endif +#if HAVE_VSSCANF int vsscanf( const char *str, const char *format, va_list ap); +#else +/* system has no vsscanf. try to provide one */ +static int vsscanf( const char *str, const char *format, va_list ap) +{ + long p1 = va_arg(ap, long); + long p2 = va_arg(ap, long); + long p3 = va_arg(ap, long); + long p4 = va_arg(ap, long); + long p5 = va_arg(ap, long); + return sscanf(str, format, p1, p2, p3, p4, p5); +} +#endif char* def_path = WIN32_PATH;