OSDN Git Service
(root)
/
android-x86
/
external-musl-libc.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
1b7f9fd
..
d4ffb9a
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