[Mplayer-cvslog] CVS: main/loader win32.c,1.29,1.30
Jürgen Keil
jkeil at mplayer.dev.hu
Wed Nov 14 20:07:01 CET 2001
Update of /cvsroot/mplayer/main/loader
In directory mplayer:/var/tmp.root/cvs-serv21334
Modified Files:
win32.c
Log Message:
Try to provide a vsscanf() implementation, if the system does not have
vsscanf()
Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- win32.c 9 Nov 2001 03:34:58 -0000 1.29
+++ win32.c 14 Nov 2001 19:06:58 -0000 1.30
@@ -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;
More information about the MPlayer-cvslog
mailing list