From f1b396f3baef0685c5cd95c4165cf5ae1c25cad7 Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Fri, 21 Dec 2018 09:55:13 -0800 Subject: constants are for gnu target only --- src/windows/gnu.rs | 5 +++++ src/windows/mod.rs | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/windows/gnu.rs b/src/windows/gnu.rs index 3568f6226e..45e7ddaea4 100644 --- a/src/windows/gnu.rs +++ b/src/windows/gnu.rs @@ -1,6 +1,11 @@ pub const L_tmpnam: ::c_uint = 14; pub const TMP_MAX: ::c_uint = 0x7fff; +// stdio file descriptor numbers +pub const STDIN_FILENO: ::c_int = 0; +pub const STDOUT_FILENO: ::c_int = 1; +pub const STDERR_FILENO: ::c_int = 2; + extern { pub fn strcasecmp(s1: *const ::c_char, s2: *const ::c_char) -> ::c_int; pub fn strncasecmp(s1: *const ::c_char, s2: *const ::c_char, diff --git a/src/windows/mod.rs b/src/windows/mod.rs index 4f4ffe214e..e4db343ec2 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -188,11 +188,6 @@ pub const SIGABRT: ::c_int = 22; pub const NSIG: ::c_int = 23; pub const SIG_ERR: ::c_int = -1; -// stdio file descriptor numbers -pub const STDIN_FILENO: ::c_int = 0; -pub const STDOUT_FILENO: ::c_int = 1; -pub const STDERR_FILENO: ::c_int = 2; - // inline comment below appeases style checker #[cfg(all(target_env = "msvc", feature = "rustc-dep-of-std"))] // " if " #[link(name = "msvcrt", cfg(not(target_feature = "crt-static")))] -- cgit v1.2.1