We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc4925 commit a3701d9Copy full SHA for a3701d9
src/zephyr/mod.rs
@@ -22,12 +22,20 @@ pub type c_short = i16;
22
pub type c_ushort = u16;
23
pub type c_int = i32;
24
pub type c_uint = u32;
25
-pub type c_float = f32;
26
-pub type c_double = f64;
+#[cfg(target_pointer_width = "32")]
+pub type c_long = i32;
27
28
+pub type c_ulong = u32;
29
+#[cfg(target_pointer_width = "64")]
30
+pub type c_long = i64;
31
32
+pub type c_ulong = u64;
33
pub type c_longlong = i64;
34
pub type c_ulonglong = u64;
35
pub type intmax_t = i64;
36
pub type uintmax_t = u64;
37
+pub type c_float = f32;
38
+pub type c_double = f64;
39
40
pub type size_t = usize;
41
pub type ptrdiff_t = isize;
0 commit comments