File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 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;
2525pub type intmax_t = i64 ;
2626pub type uintmax_t = u64 ;
2727
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 ;
4533
4634pub type pid_t = i32 ;
4735pub type in_addr_t = u32 ;
You can’t perform that action at this time.
0 commit comments