Define sleep() as a macro on Windows

This commit is contained in:
pooler 2013-10-05 00:37:40 +02:00
parent 3737e48b40
commit ff38f4cc74

View file

@ -5,10 +5,7 @@
#include <windows.h>
static inline void sleep(int secs)
{
Sleep(secs * 1000);
}
#define sleep(secs) Sleep((secs) * 1000)
enum {
PRIO_PROCESS = 0,