1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00

Avoid deprecated _sleep, instead include windows.h and use Sleep just like

osdep/timer-win2.c does.
Patch by Zuxy Meng [zuxy meng (at) gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21571 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-12-10 14:04:27 +00:00
parent b3241c226a
commit 7831dacd5d

View File

@ -19,7 +19,8 @@ void gettimeofday(struct timeval* t,void* timezone) {
#endif
#ifdef __MINGW32__
#define MISSING_USLEEP
#define sleep(t) _sleep(1000*t);
#include <windows.h>
#define sleep(t) Sleep(1000*t);
#endif
#ifdef __BEOS__