[Mplayer-cvslog] CVS: main/TOOLS cpuinfo.c,1.2,1.3

Sascha Sommer CVS faust3 at mplayerhq.hu
Sun Mar 30 22:49:13 CEST 2003


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

Modified Files:
	cpuinfo.c 
Log Message:
MINGW32 port

Index: cpuinfo.c
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/cpuinfo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cpuinfo.c	9 Jul 2002 21:50:15 -0000	1.2
+++ cpuinfo.c	30 Mar 2003 20:48:51 -0000	1.3
@@ -2,6 +2,18 @@
 #include <stdio.h>
 #include <sys/time.h>
 
+#ifdef __MINGW32__
+#include <sys/timeb.h>
+void gettimeofday(struct timeval* t,void* timezone)
+{       struct timeb timebuffer;
+        ftime( &timebuffer );
+        t->tv_sec=timebuffer.time;
+        t->tv_usec=1000*timebuffer.millitm;
+}
+#define MISSING_USLEEP
+#define sleep(t) _sleep(1000*t);
+#endif
+
 #ifdef M_UNIX
 typedef long long int64_t;
 #define	MISSING_USLEEP



More information about the MPlayer-cvslog mailing list