From ff38f4cc749ed4b595bfd61427a31034362ab295 Mon Sep 17 00:00:00 2001 From: pooler Date: Sat, 5 Oct 2013 00:37:40 +0200 Subject: [PATCH] Define sleep() as a macro on Windows --- compat.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compat.h b/compat.h index cb76309..283fc9b 100644 --- a/compat.h +++ b/compat.h @@ -5,10 +5,7 @@ #include -static inline void sleep(int secs) -{ - Sleep(secs * 1000); -} +#define sleep(secs) Sleep((secs) * 1000) enum { PRIO_PROCESS = 0,