Skip to content

Commit

Permalink
Define sleep() as a macro on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pooler committed Oct 4, 2013
1 parent 3737e48 commit ff38f4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compat.h
Expand Up @@ -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,
Expand Down

0 comments on commit ff38f4c

Please sign in to comment.