1 macro_rules
! expand_align
{
4 pub struct pthread_mutex_t
{
5 __align
: [::c_long
; 0],
6 size
: [u8; ::__SIZEOF_PTHREAD_MUTEX_T
],
9 pub struct pthread_rwlock_t
{
10 __align
: [::c_long
; 0],
11 size
: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T
],
14 pub struct pthread_mutexattr_t
{
15 __align
: [::c_int
; 0],
16 size
: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T
],
19 pub struct pthread_rwlockattr_t
{
20 __align
: [::c_int
; 0],
21 size
: [u8; ::__SIZEOF_PTHREAD_RWLOCKATTR_T
],
24 pub struct pthread_condattr_t
{
25 __align
: [::c_int
; 0],
26 size
: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T
],
31 pub struct pthread_cond_t
{
32 __align
: [*const ::c_void
; 0],
33 size
: [u8; ::__SIZEOF_PTHREAD_COND_T
],
38 if #[cfg(feature = "extra_traits")] {
39 impl PartialEq
for pthread_cond_t
{
40 fn eq(&self, other
: &pthread_cond_t
) -> bool
{
43 .zip(other
.size
.iter())
47 impl Eq
for pthread_cond_t {}
48 impl ::fmt
::Debug
for pthread_cond_t
{
49 fn fmt(&self, f
: &mut ::fmt
::Formatter
) -> ::fmt
::Result
{
50 f
.debug_struct("pthread_cond_t")
51 // FIXME: .field("size", &self.size)
55 impl ::hash
::Hash
for pthread_cond_t
{
56 fn hash
<H
: ::hash
::Hasher
>(&self, state
: &mut H
) {
57 self.size
.hash(state
);