• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 macro_rules! expand_align {
2     () => {
3         s! {
4             #[cfg_attr(any(target_pointer_width = "32",
5                            target_arch = "x86_64",
6                            target_arch = "powerpc64",
7                            target_arch = "mips64",
8                            target_arch = "s390x",
9                            target_arch = "sparc64"),
10                        repr(align(4)))]
11             #[cfg_attr(not(any(target_pointer_width = "32",
12                                target_arch = "x86_64",
13                                target_arch = "powerpc64",
14                                target_arch = "mips64",
15                                target_arch = "s390x",
16                                target_arch = "sparc64")),
17                        repr(align(8)))]
18             pub struct pthread_mutexattr_t {
19                 size: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T],
20             }
21 
22             #[repr(align(4))]
23             pub struct pthread_condattr_t {
24                 size: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T],
25             }
26         }
27     };
28 }
29