Skip to content

Commit f1b396f

Browse files
committed
constants are for gnu target only
1 parent 3ce82dd commit f1b396f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/windows/gnu.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
pub const L_tmpnam: ::c_uint = 14;
22
pub const TMP_MAX: ::c_uint = 0x7fff;
33

4+
// stdio file descriptor numbers
5+
pub const STDIN_FILENO: ::c_int = 0;
6+
pub const STDOUT_FILENO: ::c_int = 1;
7+
pub const STDERR_FILENO: ::c_int = 2;
8+
49
extern {
510
pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int;
611
pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char,

src/windows/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ pub const SIGABRT: ::c_int = 22;
188188
pub const NSIG: ::c_int = 23;
189189
pub const SIG_ERR: ::c_int = -1;
190190

191-
// stdio file descriptor numbers
192-
pub const STDIN_FILENO: ::c_int = 0;
193-
pub const STDOUT_FILENO: ::c_int = 1;
194-
pub const STDERR_FILENO: ::c_int = 2;
195-
196191
// inline comment below appeases style checker
197192
#[cfg(all(target_env = "msvc", feature = "rustc-dep-of-std"))] // " if "
198193
#[link(name = "msvcrt", cfg(not(target_feature = "crt-static")))]

0 commit comments

Comments
 (0)