Skip to content

Commit

Permalink
redox: long is 32-bits on 32-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Dec 2, 2022
1 parent a90993e commit a2af33f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/redox/mod.rs
@@ -1,5 +1,11 @@
pub type c_char = i8;
#[cfg(target_pointer_width = "32")]
pub type c_long = i32;
#[cfg(target_pointer_width = "32")]
pub type c_ulong = u32;
#[cfg(target_pointer_width = "64")]
pub type c_long = i64;
#[cfg(target_pointer_width = "64")]
pub type c_ulong = u64;
pub type wchar_t = i32;

Expand Down

0 comments on commit a2af33f

Please sign in to comment.