mirror of https://github.com/mpv-player/mpv
Try to provide a vsscanf() implementation, if the system does not have
vsscanf() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2907 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f56bc761d
commit
85b2b1ad67
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue