Skip to content

Commit a1db97e

Browse files
committed
these types are not allowed, and more scope resolution
1 parent bf16ee8 commit a1db97e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/windows/gnu.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,10 @@ pub type __p_sig_fn_t = usize;
22

33
pub const L_tmpnam: ::c_uint = 14;
44
pub const TMP_MAX: ::c_uint = 0x7fff;
5-
pub const SIGHUP: ::c_int = 1;
65
pub const SIGINT: ::c_int = 2;
7-
pub const SIGQUIT: ::c_int = 3;
86
pub const SIGILL: ::c_int = 4;
9-
pub const SIGTRAP: ::c_int = 5;
10-
pub const SIGIOT: ::c_int = 6;
11-
pub const SIGEMT: ::c_int = 7;
127
pub const SIGFPE: ::c_int = 8;
13-
pub const SIGKILL: ::c_int = 9;
14-
pub const SIGBUS: ::c_int = 10;
158
pub const SIGSEGV: ::c_int = 11;
16-
pub const SIGSYS: ::c_int = 12;
17-
pub const SIGPIPE: ::c_int = 13;
18-
pub const SIGALRM: ::c_int = 14;
199
pub const SIGTERM: ::c_int = 15;
2010
pub const SIGABRT: ::c_int = 22;
2111
pub const NSIG: ::c_int = 23;

src/windows/msvc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ pub const SIGTERM: ::c_int = 15;
1111
pub const SIG_ERR: ::c_int = -1;
1212

1313
extern {
14-
pub fn signal(signum: c_int, handler: _crt_signal_t) -> _crt_signal_t;
15-
pub fn raise(signum: c_int) -> c_int;
14+
pub fn signal(signum: ::c_int, handler: _crt_signal_t) -> _crt_signal_t;
15+
pub fn raise(signum: ::c_int) -> ::c_int;
1616
#[link_name = "_stricmp"]
1717
pub fn stricmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
1818
#[link_name = "_strnicmp"]

0 commit comments

Comments
 (0)