1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00

MINGW32 port

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9765 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-03-30 20:48:51 +00:00
parent 19b1db311e
commit feedcd4be3

View File

@ -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