use c++-friendly initializers for pthread initializer definitions

these will also avoid obnoxious warnings with gcc -Wbraces.
This commit is contained in:
Rich Felker 2012-02-29 22:55:08 -05:00
parent 4ce6766a32
commit d36751943a
1 changed files with 3 additions and 3 deletions

View File

@ -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