From 7831dacd5d07fe84114e9fe37df63bb854eff168 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 10 Dec 2006 14:04:27 +0000 Subject: [PATCH] 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 --- TOOLS/cpuinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +#define sleep(t) Sleep(1000*t); #endif #ifdef __BEOS__