use c++-friendly initializers for pthread initializer definitions
authorRich Felker <dalias@aerifal.cx>
Thu, 1 Mar 2012 03:55:08 +0000 (22:55 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 1 Mar 2012 03:55:08 +0000 (22:55 -0500)
these will also avoid obnoxious warnings with gcc -Wbraces.

include/pthread.h

index 1b7f9fd37a8bf69646ece3bdc61cf1678236adf2..d4ffb9ab0916715d103d8b2478b2cb7f88097ee7 100644 (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