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

Zuxy Meng zuxy.meng at gmail.com
Wed Nov 29 03:40:46 CET 2006


Hi,

v3.11 of mingw-runtime deprecates _sleep in favor of Win32 API Sleep.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
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);
+void __stdcall Sleep(unsigned);
+#define sleep(t) Sleep(1000*t);
 #endif
 
 #ifdef __BEOS__


More information about the MPlayer-dev-eng mailing list