Skip to content

Commit ef7c089

Browse files
tylerwhalltomtom5152
authored andcommitted
zephyr: add c_char
1 parent 3cc7a9c commit ef7c089

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/zephyr/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ pub type uint16_t = u16;
1212
pub type uint32_t = u32;
1313
pub type uint64_t = u64;
1414

15+
#[cfg(target_arch = "aarch64")]
16+
pub type c_char = u8;
17+
#[cfg(not(target_arch = "aarch64"))]
18+
pub type c_char = i8;
1519
pub type c_schar = i8;
1620
pub type c_uchar = u8;
1721
pub type c_short = i16;

0 commit comments

Comments
 (0)