Verified Commit a30c9539 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix compilation if Redox becomes part of the unix target family

parent c92ca03b
......@@ -20,6 +20,3 @@ libc = { version = "0.2", default-features = false }
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["consoleapi", "processenv", "minwinbase", "minwindef", "winbase"]
[target.'cfg(target_os = "redox")'.dependencies]
termion = "1.5"
......@@ -21,8 +21,6 @@
extern crate libc;
#[cfg(windows)]
extern crate winapi;
#[cfg(target_os = "redox")]
extern crate termion;
#[cfg(windows)]
use winapi::shared::minwindef::DWORD;
......@@ -140,19 +138,6 @@ unsafe fn msys_tty_on(fd: DWORD) -> bool {
is_msys && is_pty
}
/// returns true if this is a tty
#[cfg(target_os = "redox")]
pub fn is(stream: Stream) -> bool {
use std::io;
use termion::is_tty;
match stream {
Stream::Stdin => is_tty(&io::stdin()),
Stream::Stdout => is_tty(&io::stdout()),
Stream::Stderr => is_tty(&io::stderr()),
}
}
/// returns true if this is a tty
#[cfg(target_arch = "wasm32")]
pub fn is(_stream: Stream) -> bool {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment