Add missing #include, fixes the warning:
[mplayer/greg.git] / osdep / vsscanf.c
blob8a7ccf98b777fa430398958e4a088ccee791b0da
1 #include "config.h"
3 /* system has no vsscanf. try to provide one */
5 #include <stdio.h>
6 #include <stdarg.h>
8 int
9 vsscanf(const char *str, const char *format, va_list ap)
11 /* XXX: can this be implemented in a more portable way? */
12 long p1 = va_arg(ap, long);
13 long p2 = va_arg(ap, long);
14 long p3 = va_arg(ap, long);
15 long p4 = va_arg(ap, long);
16 long p5 = va_arg(ap, long);
17 return sscanf(str, format, p1, p2, p3, p4, p5);