summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libirecovery.h10
-rw-r--r--src/libirecovery.c4
2 files changed, 4 insertions, 10 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index f974080..8c17167 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -26,16 +26,6 @@ extern "C" {
#include <stdint.h>
-#ifndef WIN32
-#include <libusb-1.0/libusb.h>
-#else
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#undef interface
-#ifndef sleep
-#define sleep(n) Sleep(1000 * n)
-#endif
-#endif
#define APPLE_VENDOR_ID 0x05AC
#define CPID_UNKNOWN -1
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 6a8f470..a9369dc 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -31,9 +31,13 @@
#else
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#undef interface
#include <setupapi.h>
#define _FMT_qX "%I64X"
#define _FMT_016llx "%016I64x"
+#ifndef sleep
+#define sleep(n) Sleep(1000 * n)
+#endif
#endif
#include "libirecovery.h"