diff options
author | 2024-12-27 01:55:34 +0100 | |
---|---|---|
committer | 2024-12-27 01:55:34 +0100 | |
commit | 440dbbbf615de11acdd8216df0e3676e8efb9ba1 (patch) | |
tree | 022ccc6da624af8406d6f54fccb050c03be80e8a /include/libimobiledevice-glue/thread.h | |
parent | 1d9046fbd02482cf44138038779847b9ea67c867 (diff) | |
download | libimobiledevice-glue-440dbbbf615de11acdd8216df0e3676e8efb9ba1.tar.gz libimobiledevice-glue-440dbbbf615de11acdd8216df0e3676e8efb9ba1.tar.bz2 |
Add extern "C" guards to public headers
Diffstat (limited to 'include/libimobiledevice-glue/thread.h')
-rw-r--r-- | include/libimobiledevice-glue/thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libimobiledevice-glue/thread.h b/include/libimobiledevice-glue/thread.h index a29573c..d04dae7 100644 --- a/include/libimobiledevice-glue/thread.h +++ b/include/libimobiledevice-glue/thread.h @@ -66,6 +66,10 @@ typedef pthread_once_t thread_once_t; #define THREAD_T_NULL (THREAD_T)NULL #endif +#ifdef __cplusplus +extern "C" { +#endif + typedef void* (*thread_func_t)(void* data); LIMD_GLUE_API int thread_new(THREAD_T* thread, thread_func_t thread_func, void* data); @@ -99,4 +103,8 @@ LIMD_GLUE_API int cond_signal(cond_t* cond); LIMD_GLUE_API int cond_wait(cond_t* cond, mutex_t* mutex); LIMD_GLUE_API int cond_wait_timeout(cond_t* cond, mutex_t* mutex, unsigned int timeout_ms); +#ifdef __cplusplus +} +#endif + #endif |