Skip to content

Commit 64ff337

Browse files
author
Jason Mobarak
authored
windows: adjust stack size, fix issue with enum wrapper (#31)
* update libswiftnav pointer * bump * fix repr on windows, set stack size
1 parent 70f2054 commit 64ff337

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.cargo/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.x86_64-pc-windows-msvc]
2+
rustflags = ["-C", "link-arg=/STACK:8388608"]

src/ephemeris.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ type Result<T> = std::result::Result<T, InvalidEphemeris>;
3636

3737
/// Various statuses that an ephemeris can be in
3838
#[derive(Copy, Clone, Debug)]
39-
#[repr(u32)]
39+
#[cfg_attr(windows, repr(i32))]
40+
#[cfg_attr(not(windows), repr(u32))]
4041
pub enum Status {
4142
Null = c_bindings::ephemeris_status_t_EPH_NULL,
4243
Invalid = c_bindings::ephemeris_status_t_EPH_INVALID,

0 commit comments

Comments
 (0)