Browse Source

use c++-friendly initializers for pthread initializer definitions

these will also avoid obnoxious warnings with gcc -Wbraces.
Rich Felker 13 years ago
parent
commit
d36751943a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      include/pthread.h

+ 3 - 3
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