Define sleep() as a macro on Windows
This commit is contained in:
parent
3737e48b40
commit
ff38f4cc74
1 changed files with 1 additions and 4 deletions
5
compat.h
5
compat.h
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue