1 macro_rules! expand_align { 2 () => { 3 s! { 4 pub struct pthread_mutex_t { 5 #[cfg(any(target_arch = "mips", 6 target_arch = "arm", 7 target_arch = "powerpc"))] 8 __align: [::c_long; 0], 9 #[cfg(any(libc_align, 10 target_arch = "mips", 11 target_arch = "arm", 12 target_arch = "powerpc"))] 13 __align: [::c_longlong; 0], 14 size: [u8; ::__SIZEOF_PTHREAD_MUTEX_T], 15 } 16 17 pub struct pthread_rwlock_t { 18 #[cfg(any(target_arch = "mips", 19 target_arch = "arm", 20 target_arch = "powerpc"))] 21 __align: [::c_long; 0], 22 #[cfg(not(any( 23 target_arch = "mips", 24 target_arch = "arm", 25 target_arch = "powerpc")))] 26 __align: [::c_longlong; 0], 27 size: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T], 28 } 29 30 pub struct pthread_mutexattr_t { 31 #[cfg(any(target_arch = "x86_64", target_arch = "powerpc64", 32 target_arch = "mips64", target_arch = "s390x", 33 target_arch = "sparc64"))] 34 __align: [::c_int; 0], 35 #[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64", 36 target_arch = "mips64", target_arch = "s390x", 37 target_arch = "sparc64")))] 38 __align: [::c_long; 0], 39 size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T], 40 } 41 42 pub struct pthread_cond_t { 43 __align: [::c_longlong; 0], 44 size: [u8; ::__SIZEOF_PTHREAD_COND_T], 45 } 46 47 pub struct pthread_condattr_t { 48 __align: [::c_int; 0], 49 size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T], 50 } 51 } 52 } 53 } 54