Skip to content

Commit

Permalink
fix(Windows): fixes a failing windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed Jun 7, 2016
1 parent 0d541a2 commit 536eb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use ansi_term::ANSIString;
#[cfg(feature = "color")]
use libc;

#[cfg(feature = "color")]
#[cfg(all(feature = "color", not(target_os = "windows"))]
const STDERR: i32 = libc::STDERR_FILENO;
#[cfg(feature = "color")]
#[cfg(all(feature = "color", not(target_os = "windows"))]
const STDOUT: i32 = libc::STDOUT_FILENO;

#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ extern crate strsim;
extern crate ansi_term;
#[cfg(feature = "yaml")]
extern crate yaml_rust;
#[cfg(all(feature = "wrap_help", not(target_os = "windows")))]
#[cfg(any(feature = "wrap_help", feature = "color"))]
extern crate libc;
#[cfg(all(feature = "wrap_help", not(target_os = "windows")))]
extern crate unicode_width;
Expand Down

0 comments on commit 536eb6d

Please sign in to comment.