diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..6243706 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=/STACK:8388608"] diff --git a/src/ephemeris.rs b/src/ephemeris.rs index 4224f2a..0dc6566 100644 --- a/src/ephemeris.rs +++ b/src/ephemeris.rs @@ -36,7 +36,8 @@ type Result = std::result::Result; /// Various statuses that an ephemeris can be in #[derive(Copy, Clone, Debug)] -#[repr(u32)] +#[cfg_attr(windows, repr(i32))] +#[cfg_attr(not(windows), repr(u32))] pub enum Status { Null = c_bindings::ephemeris_status_t_EPH_NULL, Invalid = c_bindings::ephemeris_status_t_EPH_INVALID,