changeset 21555:ababf115f90d

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]
author reimar
date Sun, 10 Dec 2006 14:04:27 +0000
parents 77ec48709f36
children 283bff578e1c
files TOOLS/cpuinfo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/cpuinfo.c	Sun Dec 10 13:17:54 2006 +0000
+++ b/TOOLS/cpuinfo.c	Sun Dec 10 14:04:27 2006 +0000
@@ -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__