mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9765 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
19b1db311e
commit
feedcd4be3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user