From d36751943a35e884a8889895c3d6fae52a93fc9b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 29 Feb 2012 22:55:08 -0500 Subject: [PATCH] use c++-friendly initializers for pthread initializer definitions these will also avoid obnoxious warnings with gcc -Wbraces. --- include/pthread.h | 6 +++--- 1 file 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 -- 2.20.1