summaryrefslogtreecommitdiff
path: root/include/pthread.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-02-29 22:55:08 -0500
committerRich Felker <dalias@aerifal.cx>2012-02-29 22:55:08 -0500
commitd36751943a35e884a8889895c3d6fae52a93fc9b (patch)
treef15ff30ae7c6db4db33d133c3aed99a7acea7d8f /include/pthread.h
parent4ce6766a3264b1ee5bf4056a0685b06939938247 (diff)
downloadmusl-d36751943a35e884a8889895c3d6fae52a93fc9b.tar.gz
musl-d36751943a35e884a8889895c3d6fae52a93fc9b.tar.bz2
musl-d36751943a35e884a8889895c3d6fae52a93fc9b.tar.xz
musl-d36751943a35e884a8889895c3d6fae52a93fc9b.zip
use c++-friendly initializers for pthread initializer definitions
these will also avoid obnoxious warnings with gcc -Wbraces.
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h6
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