From 7dd5586d9ef93ee99b97824c21fa61b2a5e564dd Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Tue, 2 Dec 2003 10:47:02 +0000 Subject: [PATCH] Sleep is bogus under windows and counts the time in milliseconds. --- src/c/time.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/c/time.d b/src/c/time.d index c17a5c029..bb40fd787 100644 --- a/src/c/time.d +++ b/src/c/time.d @@ -22,6 +22,12 @@ #endif #include +#ifdef mignw32 +/* The function sleep() in MinGW is bogus: it counts millisecons! */ +#include +#define sleep(x) Sleep(x*1000) +#endif + #ifndef HZ /* usually from */ #define HZ 60 #endif