[Mplayer-cvslog] CVS: main/linux vsscanf.c,NONE,1.1 Makefile,1.6,1.7

Jürgen Keil CVS jkeil at mplayerhq.hu
Tue Nov 26 19:53:25 CET 2002


Update of /cvsroot/mplayer/main/linux
In directory mail:/var/tmp.root/cvs-serv9563

Modified Files:
	Makefile 
Added Files:
	vsscanf.c 
Log Message:
Add our own vsscanf implementation, in case the system's libc does not have
one.
(required for solaris, when the Ogg/Vorbis audio decoder is used)


--- NEW FILE ---
#include "../config.h"

#ifndef	HAVE_VSSCANF
/* system has no vsscanf.  try to provide one */

#include <stdio.h>
#include <stdarg.h>

int
vsscanf(const char *str, const char *format, va_list ap)
{
    /* XXX: can this be implemented in a more portable way? */
    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

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/linux/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile	26 Nov 2002 18:31:30 -0000	1.6
+++ Makefile	26 Nov 2002 18:53:00 -0000	1.7
@@ -3,7 +3,7 @@
 
 LIBNAME = libosdep.a
 
-SRCS=getch2.c timer-lx.c shmem.c strsep.c scandir.c # timer.c
+SRCS=getch2.c timer-lx.c shmem.c strsep.c vsscanf.c scandir.c # timer.c
 OBJS=$(SRCS:.c=.o)
 
 ifeq ($(TARGET_ARCH_X86),yes)




More information about the MPlayer-cvslog mailing list