diff options
author | Mackenzie Clark <mackenzie.a.z.c@gmail.com> | 2018-12-21 09:55:13 -0800 |
---|---|---|
committer | Mackenzie Clark <mackenzie.a.z.c@gmail.com> | 2018-12-21 09:55:13 -0800 |
commit | f1b396f3baef0685c5cd95c4165cf5ae1c25cad7 (patch) | |
tree | b1a915404437c5e2ab4e6358be6f37f02b5b8325 | |
parent | 3ce82dd39f71d70b1ab25eb2cc01ee4fade6c4b7 (diff) | |
download | rust-libc-f1b396f3baef0685c5cd95c4165cf5ae1c25cad7.tar.gz |
constants are for gnu target only
-rw-r--r-- | src/windows/gnu.rs | 5 | ||||
-rw-r--r-- | 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")))] |