Skip to content

Commit 1b08133

Browse files
committed
fix: FFI types on Windows
1 parent 32b02b6 commit 1b08133

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

simplicity-sys/src/ffi.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ pub type c_int = i32;
1919
pub type c_uint = u32;
2020
pub type c_size_t = usize;
2121
pub type c_uint_fast8_t = u8;
22-
#[cfg(any(target_arch = "wasm32", target_arch = "aarch64"))]
22+
#[cfg(all(any(target_arch = "wasm32", target_arch = "aarch64"), not(target_os = "windows")))]
2323
pub type c_uint_fast16_t = u16;
24-
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64")))]
24+
#[cfg(target_os = "windows")]
25+
pub type c_uint_fast16_t = u32;
26+
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64", target_os = "windows")))]
2527
pub type c_uint_fast16_t = usize;
2628
#[cfg(any(target_arch = "wasm32", target_arch = "aarch64"))]
2729
pub type c_uint_fast32_t = u32;

0 commit comments

Comments
 (0)