Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ x86_64-unknown-haiku \
x86_64-unknown-hermit \
x86_64-unknown-l4re-uclibc \
x86_64-unknown-openbsd \
armv7-wrs-vxworks \
aarch64-wrs-vxworks \
i686-wrs-vxworks \
x86_64-wrs-vxworks \
powerpc-wrs-vxworks \
powerpc-wrs-vxworks-spe \
powerpc64-wrs-vxworks \
"

if [ "${RUST}" = "nightly" ] && [ "${OS}" = "linux" ]; then
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ cfg_if! {

mod switch;
pub use switch::*;
} else if #[cfg(target_os = "vxworks")] {
mod fixed_width_ints;
pub use fixed_width_ints::*;

mod vxworks;
pub use vxworks::*;
} else if #[cfg(unix)] {
mod fixed_width_ints;
pub use fixed_width_ints::*;
Expand Down
3 changes: 3 additions & 0 deletions src/vxworks/aarch64.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub type c_char = u8;
pub type c_long = i64;
pub type c_ulong = u64;
3 changes: 3 additions & 0 deletions src/vxworks/arm.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub type c_char = u8;
pub type c_long = i32;
pub type c_ulong = u32;
2 changes: 2 additions & 0 deletions src/vxworks/armv7.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub type c_long = i32;
pub type c_ulong = u32;
Loading