diff --git a/src/windows/mod.rs b/src/windows/mod.rs index e4db343ec204a262f2697f67d3e1b93d98724613..4f4ffe214e2d8cf69975e6562fa5429d8f873dd5 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -188,6 +188,11 @@ 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")))]