diff options
author | Nikias Bassen | 2011-09-10 19:08:39 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-03-19 01:38:54 +0100 |
commit | 475c9679716eec92e3508063b7486e3508c4c974 (patch) | |
tree | 5ab09c85387821e05b052cbb642b92ae102953ec /src/afc.h | |
parent | 6f29ab73053327066409744d025dcbd03fd6b627 (diff) | |
download | libimobiledevice-475c9679716eec92e3508063b7486e3508c4c974.tar.gz libimobiledevice-475c9679716eec92e3508063b7486e3508c4c974.tar.bz2 |
WIN32: use windows threads and mutexes instead of pthread_*
Diffstat (limited to 'src/afc.h')
-rw-r--r-- | src/afc.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -20,7 +20,11 @@ */ #include <stdint.h> +#ifdef WIN32 +#include <windows.h> +#else #include <pthread.h> +#endif #include "libimobiledevice/afc.h" @@ -53,7 +57,11 @@ struct afc_client_private { AFCPacket *afc_packet; int file_handle; int lock; +#ifdef WIN32 + CRITICAL_SECTION mutex; +#else pthread_mutex_t mutex; +#endif int own_connection; }; |