-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ship custom
cty
that always assumes target_os = "windows"
- Loading branch information
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
/// A `cty` implementation that always assumes `target_os = "windows"`. | ||
/// Forked from `::core::ffi` | ||
pub type c_void = ::core::ffi::c_void; | ||
|
||
|
||
pub type c_char = i8; // Windows specific | ||
pub type c_schar = i8; | ||
pub type c_uchar = u8; | ||
pub type c_short = i16; | ||
pub type c_ushort = u16; | ||
|
||
pub type c_int = i32; // Windows specific | ||
pub type c_uint = u32; // Windows specific | ||
|
||
pub type c_long = i32; // Windows specific | ||
pub type c_ulong = u32; // Windows specific | ||
|
||
pub type c_longlong = i64; | ||
pub type c_ulonglong = u64; | ||
|
||
pub type c_float = f32; | ||
pub type c_double = f64; | ||
|
||
pub type c_size_t = usize; | ||
pub type c_ssize_t = isize; | ||
pub type c_ptrdiff_t = isize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters