diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-02-29 22:55:08 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-02-29 22:55:08 -0500 |
commit | d36751943a35e884a8889895c3d6fae52a93fc9b (patch) | |
tree | f15ff30ae7c6db4db33d133c3aed99a7acea7d8f | |
parent | 4ce6766a3264b1ee5bf4056a0685b06939938247 (diff) | |
download | musl-d36751943a35e884a8889895c3d6fae52a93fc9b.tar.gz musl-d36751943a35e884a8889895c3d6fae52a93fc9b.tar.xz musl-d36751943a35e884a8889895c3d6fae52a93fc9b.zip |
use c++-friendly initializers for pthread initializer definitions
these will also avoid obnoxious warnings with gcc -Wbraces.
-rw-r--r-- | include/pthread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/pthread.h b/include/pthread.h index 1b7f9fd3..d4ffb9ab 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -53,9 +53,9 @@ extern "C" { #define PTHREAD_PROCESS_SHARED 1 -#define PTHREAD_MUTEX_INITIALIZER {0} -#define PTHREAD_RWLOCK_INITIALIZER {0} -#define PTHREAD_COND_INITIALIZER {0} +#define PTHREAD_MUTEX_INITIALIZER {{{0}}} +#define PTHREAD_RWLOCK_INITIALIZER {{{0}}} +#define PTHREAD_COND_INITIALIZER {{{0}}} #define PTHREAD_ONCE_INIT 0 |