summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 20:48:51 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-30 20:48:51 +0000
commitfeedcd4be3e9b758f43150126821d72e4460f1d8 (patch)
tree276841ec24f9c1e336b253f50def2a89e3561f0c /TOOLS
parent19b1db311edc21886a52d38ef1785ce8047d95e6 (diff)
downloadmpv-feedcd4be3e9b758f43150126821d72e4460f1d8.tar.bz2
mpv-feedcd4be3e9b758f43150126821d72e4460f1d8.tar.xz
MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9765 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/cpuinfo.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c
index 333ae0a5ae..82b9924215 100644
--- a/TOOLS/cpuinfo.c
+++ b/TOOLS/cpuinfo.c
@@ -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