summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 14:04:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-10 14:04:27 +0000
commit7831dacd5d07fe84114e9fe37df63bb854eff168 (patch)
tree41417b3f250ce7e0236e3c6798e0e7f68897acbe /TOOLS
parentb3241c226adb4ad888fde017021622ab9ad0f906 (diff)
downloadmpv-7831dacd5d07fe84114e9fe37df63bb854eff168.tar.bz2
mpv-7831dacd5d07fe84114e9fe37df63bb854eff168.tar.xz
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
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/cpuinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c
index 7297f22e9e..31864e5d4b 100644
--- a/TOOLS/cpuinfo.c
+++ b/TOOLS/cpuinfo.c
@@ -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__