File tree 1 file changed +5
-17
lines changed
1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,11 @@ pub type c_ulonglong = u64;
25
25
pub type intmax_t = i64 ;
26
26
pub type uintmax_t = u64 ;
27
27
28
- cfg_if ! {
29
- if #[ cfg( target_pointer_width = "32" ) ] {
30
- pub type size_t = c_uint;
31
- pub type ssize_t = c_int;
32
- pub type ptrdiff_t = c_int;
33
- pub type intptr_t = c_int;
34
- pub type uintptr_t = c_uint;
35
- } else if #[ cfg( target_pointer_width = "64" ) ] {
36
- pub type size_t = c_ulonglong;
37
- pub type ssize_t = c_longlong;
38
- pub type ptrdiff_t = c_longlong;
39
- pub type intptr_t = c_longlong;
40
- pub type uintptr_t = c_ulonglong;
41
- } else {
42
- // Unknown target_pointer_width
43
- }
44
- }
28
+ pub type uintptr_t = usize ;
29
+ pub type intptr_t = isize ;
30
+ pub type ptrdiff_t = isize ;
31
+ pub type size_t = :: uintptr_t ;
32
+ pub type ssize_t = :: intptr_t ;
45
33
46
34
pub type pid_t = i32 ;
47
35
pub type in_addr_t = u32 ;
You can’t perform that action at this time.
0 commit comments