diff options
author | Nikias Bassen | 2023-12-11 12:21:02 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-12-11 12:21:02 +0100 |
commit | 6096480407bcb8e6e74389f8a6780c1056a0aaf3 (patch) | |
tree | 1043e0ce950b69af8467d7f084cf0d120888a763 /include/libimobiledevice-glue/thread.h | |
parent | e314faac7850ebe9076b7cf5807f87ae6bd122fa (diff) | |
download | libimobiledevice-glue-6096480407bcb8e6e74389f8a6780c1056a0aaf3.tar.gz libimobiledevice-glue-6096480407bcb8e6e74389f8a6780c1056a0aaf3.tar.bz2 |
win32: Remove windows.h from public headers
Diffstat (limited to 'include/libimobiledevice-glue/thread.h')
-rw-r--r-- | include/libimobiledevice-glue/thread.h | 7 |
1 files changed, 4 insertions, 3 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} |