mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 13:41:57 +00:00
use c++-friendly initializers for pthread initializer definitions
these will also avoid obnoxious warnings with gcc -Wbraces.
This commit is contained in:
@ -53,9 +53,9 @@ extern "C" {
|
|||||||
#define PTHREAD_PROCESS_SHARED 1
|
#define PTHREAD_PROCESS_SHARED 1
|
||||||
|
|
||||||
|
|
||||||
#define PTHREAD_MUTEX_INITIALIZER {0}
|
#define PTHREAD_MUTEX_INITIALIZER {{{0}}}
|
||||||
#define PTHREAD_RWLOCK_INITIALIZER {0}
|
#define PTHREAD_RWLOCK_INITIALIZER {{{0}}}
|
||||||
#define PTHREAD_COND_INITIALIZER {0}
|
#define PTHREAD_COND_INITIALIZER {{{0}}}
|
||||||
#define PTHREAD_ONCE_INIT 0
|
#define PTHREAD_ONCE_INIT 0
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user