mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-23 04:09:50 +00:00
Add explicit cast for pthread lock initialiser.
This commit is contained in:
parent
8baefbe5c8
commit
0ed2182b83
2
lock.h
2
lock.h
@ -23,7 +23,7 @@ typedef pthread_mutex_t mutex_t;
|
||||
// If this pthread implementation has a static initializer for recursive
|
||||
// mutexes, use that, otherwise fall back to the portable version
|
||||
# ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
||||
# define INIT_LOCK(x) x = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
||||
# define INIT_LOCK(x) x = (pthread_mutex_t)PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
||||
# elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER)
|
||||
# define INIT_LOCK(x) x = (pthread_mutex_t)PTHREAD_RECURSIVE_MUTEX_INITIALIZER
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user