1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#![allow(non_camel_case_types)]

#[cfg(any(target_arch = "aarch64",
          target_arch = "arm",
          target_arch = "powerpc",
          target_arch = "powerpc64"))]
pub type c_char = u8;

#[cfg(any(target_arch = "mips",
          target_arch = "mips64",
          target_arch = "sparc64",
          target_arch = "x86",
          target_arch = "x86_64"))]
pub type c_char = i8;

#[cfg(any(target_arch = "arm",
          target_arch = "mips",
          target_arch = "powerpc",
          target_arch = "x86"))]
pub type c_long = i32;

#[cfg(any(target_arch = "aarch64",
          target_arch = "mips64",
          target_arch = "powerpc64",
          target_arch = "sparc64",
          target_arch = "x86_64"))]
pub type c_long = i64;

#[cfg(any(target_arch = "arm",
          target_arch = "mips",
          target_arch = "powerpc",
          target_arch = "x86"))]
pub type c_ulong = u32;

#[cfg(any(target_arch = "aarch64",
          target_arch = "mips64",
          target_arch = "powerpc64",
          target_arch = "sparc64",
          target_arch = "x86_64"))]
pub type c_ulong = u64;

pub type c_int = i32;
pub type c_uint = u32;
pub type c_ushort = u16;
pub type c_longlong = i64;

pub type size_t = usize;
pub type ssize_t = isize;