summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 938d14c..1ffe3bd 100644
--- a/src/common.h
+++ b/src/common.h
@@ -191,7 +191,9 @@ char *generate_guid();
#include <windows.h>
#define __mkdir(path, mode) mkdir(path)
#define FMT_qu "%I64u"
+#ifndef sleep
#define sleep(x) Sleep(x*1000)
+#endif
#else
#define __mkdir(path, mode) mkdir(path, mode)
#define FMT_qu "%qu"