[MPlayer-cvslog] r21571 - trunk/TOOLS/cpuinfo.c

reimar subversion at mplayerhq.hu
Sun Dec 10 15:04:28 CET 2006


Author: reimar
Date: Sun Dec 10 15:04:27 2006
New Revision: 21571

Modified:
   trunk/TOOLS/cpuinfo.c

Log:
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]


Modified: trunk/TOOLS/cpuinfo.c
==============================================================================
--- trunk/TOOLS/cpuinfo.c	(original)
+++ trunk/TOOLS/cpuinfo.c	Sun Dec 10 15:04:27 2006
@@ -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);
 #endif
 
 #ifdef __BEOS__



More information about the MPlayer-cvslog mailing list