projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ce6766
)
use c++-friendly initializers for pthread initializer definitions
author
Rich Felker
<dalias@aerifal.cx>
Thu, 1 Mar 2012 03:55:08 +0000
(22:55 -0500)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/include/pthread.h
b/include/pthread.h
index 1b7f9fd37a8bf69646ece3bdc61cf1678236adf2..d4ffb9ab0916715d103d8b2478b2cb7f88097ee7 100644
(file)
--- 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