From feedcd4be3e9b758f43150126821d72e4460f1d8 Mon Sep 17 00:00:00 2001 From: faust3 Date: Sun, 30 Mar 2003 20:48:51 +0000 Subject: MINGW32 port git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9765 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/cpuinfo.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'TOOLS') 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 #include +#ifdef __MINGW32__ +#include +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 -- cgit v1.2.3