Skip to content

Commit e92ed6d

Browse files
committed
add stdio constants for windows
1 parent 027d483 commit e92ed6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/windows/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ 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+
191196
// inline comment below appeases style checker
192197
#[cfg(all(target_env = "msvc", feature = "rustc-dep-of-std"))] // " if "
193198
#[link(name = "msvcrt", cfg(not(target_feature = "crt-static")))]

0 commit comments

Comments
 (0)