Mercurial > mplayer.hg
comparison loader/win32.c @ 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 | e2bae77b6c18 |
children | adcdd30d7e7d |
comparison
equal
deleted
inserted
replaced
2905:8927ef5c4870 | 2906:2ec3ec904cd4 |
---|---|
45 #include <sys/timeb.h> | 45 #include <sys/timeb.h> |
46 #ifdef HAVE_KSTAT | 46 #ifdef HAVE_KSTAT |
47 #include <kstat.h> | 47 #include <kstat.h> |
48 #endif | 48 #endif |
49 | 49 |
50 #if HAVE_VSSCANF | |
50 int vsscanf( const char *str, const char *format, va_list ap); | 51 int vsscanf( const char *str, const char *format, va_list ap); |
52 #else | |
53 /* system has no vsscanf. try to provide one */ | |
54 static int vsscanf( const char *str, const char *format, va_list ap) | |
55 { | |
56 long p1 = va_arg(ap, long); | |
57 long p2 = va_arg(ap, long); | |
58 long p3 = va_arg(ap, long); | |
59 long p4 = va_arg(ap, long); | |
60 long p5 = va_arg(ap, long); | |
61 return sscanf(str, format, p1, p2, p3, p4, p5); | |
62 } | |
63 #endif | |
51 | 64 |
52 char* def_path = WIN32_PATH; | 65 char* def_path = WIN32_PATH; |
53 | 66 |
54 static void do_cpuid(unsigned int ax, unsigned int *regs) | 67 static void do_cpuid(unsigned int ax, unsigned int *regs) |
55 { | 68 { |