summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 1949a8c..938d14c 100644
--- a/src/common.h
+++ b/src/common.h
@@ -188,9 +188,13 @@ int write_file(const char* filename, const void* data, size_t size);
char *generate_guid();
#ifdef WIN32
+#include <windows.h>
#define __mkdir(path, mode) mkdir(path)
+#define FMT_qu "%I64u"
+#define sleep(x) Sleep(x*1000)
#else
#define __mkdir(path, mode) mkdir(path, mode)
+#define FMT_qu "%qu"
#endif
extern struct idevicerestore_client_t* idevicerestore;