[MPlayer-dev-eng] [PATCH] Avoid "_sleep deprecated" warning in cpuinfo.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Nov 29 13:03:10 CET 2006


Hello,
On Wed, Nov 29, 2006 at 07:33:49PM +0800, Zuxy Meng wrote:
> Index: TOOLS/cpuinfo.c
> ===================================================================
> --- TOOLS/cpuinfo.c	???????? 21370??
> +++ TOOLS/cpuinfo.c	????????????
> @@ -19,7 +19,8 @@
>  #endif
>  #ifdef __MINGW32__
>  #define MISSING_USLEEP
> -#define sleep(t) _sleep(1000*t);
> +#include <windows.h>
> +#define sleep(t) Sleep(1000*t);

Why is winbase.h not enough? Or is that one of the headers you're not
supposed to use?

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list