Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ mod ad {
pub type c_uint = u16;
}

#[cfg(target_arch = "avr")]
mod ad {
pub type c_char = i8;
pub type c_int = i16;
pub type c_uint = u16;
// I hope the definitions for stuff like c_longlong are actually correct for AVR
}

// NOTE c_{,u}long definitions come from libc v0.2.3
#[cfg(not(any(windows,
target_os = "redox",
Expand Down Expand Up @@ -103,6 +111,9 @@ mod pwd {}
#[cfg(target_pointer_width = "64")]
mod pwd {}

#[cfg(target_pointer_width = "16")]
mod pwd {}

pub type int8_t = i8;
pub type int16_t = i16;
pub type int32_t = i32;
Expand Down