Skip to content
Open
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
12 changes: 6 additions & 6 deletions src/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub type ptrdiff_t = isize;
pub type intptr_t = isize;
pub type uintptr_t = usize;
pub type ssize_t = isize;
pub type sighandler_t = usize;
pub type sighandler_t = *const c_void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One concern: if Rust ever does get raw function pointers, it would be a breaking change to start using them. So I'm thinking maybe we should create an opaque type that would let us change to a raw function pointer at some point, ideally something compatible with rust-lang/libs-team#589 (comment).

Will need to think about this a bit


pub type wchar_t = u16;

Expand Down Expand Up @@ -237,11 +237,11 @@ pub const SIGABRT: c_int = 22;
pub const NSIG: c_int = 23;

pub const SIG_ERR: c_int = -1;
pub const SIG_DFL: crate::sighandler_t = 0;
pub const SIG_IGN: crate::sighandler_t = 1;
pub const SIG_GET: crate::sighandler_t = 2;
pub const SIG_SGE: crate::sighandler_t = 3;
pub const SIG_ACK: crate::sighandler_t = 4;
pub const SIG_DFL: crate::sighandler_t = 0 as sighandler_t;
pub const SIG_IGN: crate::sighandler_t = 1 as sighandler_t;
pub const SIG_GET: crate::sighandler_t = 2 as sighandler_t;
pub const SIG_SGE: crate::sighandler_t = 3 as sighandler_t;
pub const SIG_ACK: crate::sighandler_t = 4 as sighandler_t;

#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum FILE {}
Expand Down
Loading