summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libimobiledevice-glue/thread.h7
-rw-r--r--include/libimobiledevice-glue/utils.h4
2 files changed, 4 insertions, 7 deletions
diff --git a/include/libimobiledevice-glue/thread.h b/include/libimobiledevice-glue/thread.h
index 2aadc6e..a960410 100644
--- a/include/libimobiledevice-glue/thread.h
+++ b/include/libimobiledevice-glue/thread.h
@@ -25,14 +25,15 @@
#include <stddef.h>
#ifdef WIN32
-#include <windows.h>
+typedef void* HANDLE;
typedef HANDLE THREAD_T;
-typedef CRITICAL_SECTION mutex_t;
+struct _RTL_CRITICAL_SECTION;
+typedef struct _RTL_CRITICAL_SECTION mutex_t;
typedef struct {
HANDLE sem;
} cond_t;
typedef volatile struct {
- LONG lock;
+ long lock;
int state;
} thread_once_t;
#define THREAD_ONCE_INIT {0, 0}
diff --git a/include/libimobiledevice-glue/utils.h b/include/libimobiledevice-glue/utils.h
index 1a21871..f7f60f2 100644
--- a/include/libimobiledevice-glue/utils.h
+++ b/include/libimobiledevice-glue/utils.h
@@ -29,10 +29,6 @@
#include <config.h>
#endif
-#ifdef WIN32
-#include <windows.h>
-#endif
-
#include <stdio.h>
#include <stdint.h>