@@ -51,43 +51,23 @@ pub use self::itoa::itoa;
5151
5252mod snprintf;
5353
54- /// `long long int` is always 64-bits long.
55- pub type CLongLong = i64 ;
54+ /// `long long int`
55+ pub type CLongLong = :: core :: ffi :: c_longlong ;
5656
57- /// `unsigned long long int` is always 64-bits long.
58- pub type CULongLong = i64 ;
57+ /// `unsigned long long int`
58+ pub type CULongLong = :: core :: ffi :: c_ulonglong ;
5959
60- #[ cfg( feature = "lp64" ) ]
61- /// The `lp64` feature means we assume `long int` is 64-bits.
62- pub type CLong = i64 ;
60+ /// `long int`
61+ pub type CLong = :: core:: ffi:: c_long ;
6362
64- #[ cfg( feature = "lp64" ) ]
65- /// The `lp64` feature means we assume `unsigned long int` is 64-bits.
66- pub type CULong = u64 ;
63+ /// `unsigned long int`
64+ pub type CULong = :: core:: ffi:: c_ulong ;
6765
68- #[ cfg( not( feature = "lp64" ) ) ]
69- /// We assume `long int` is 32-bits.
70- pub type CLong = i32 ;
66+ /// `int`
67+ pub type CInt = :: core:: ffi:: c_int ;
7168
72- #[ cfg( not( feature = "lp64" ) ) ]
73- /// We assume `unsigned long int` is 32-bits.
74- pub type CULong = u32 ;
75-
76- #[ cfg( feature = "lp32" ) ]
77- /// The `lp32` feature means we assume `int` is 16-bits.
78- pub type CInt = i16 ;
79-
80- #[ cfg( feature = "lp32" ) ]
81- /// The `lp32` feature means we assume `unsigned int` is 16-bits.
82- pub type CUInt = u16 ;
83-
84- #[ cfg( not( feature = "lp32" ) ) ]
85- /// We assume `int` is 32-bits.
86- pub type CInt = i32 ;
87-
88- #[ cfg( not( feature = "lp32" ) ) ]
89- /// We assume `unsigned int` is 32-bits.
90- pub type CUInt = u32 ;
69+ /// `unsigned int`
70+ pub type CUInt = :: core:: ffi:: c_uint ;
9171
9272/// Represents an 8-bit `char`. Rust does not (and will never) support
9373/// platforms where `char` is not 8-bits long.
0 commit comments