From 3dfd12967aed35b7788f7d3c7460b76b76e70b60 Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Sun, 10 Aug 2014 21:26:45 -0700 Subject: Replace #[cfg(target_os = "win32")] with #[cfg(target_os = "windows")] --- src/liblibc/lib.rs | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/liblibc') diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index e368a564415..c005ae71480 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -1138,7 +1138,8 @@ pub mod types { } } - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod os { pub mod common { pub mod posix01 { @@ -1803,7 +1804,8 @@ pub mod consts { // Consts tend to vary per OS so we pull their definitions out // into this module. - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod os { pub mod c95 { use types::os::arch::c95::{c_int, c_uint}; @@ -3887,7 +3889,8 @@ pub mod funcs { // so be careful when trying to write portable code; it won't always work // with the same POSIX functions and types as other platforms. - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod posix88 { pub mod stat_ { use types::os::common::posix01::{stat, utimbuf}; @@ -4316,7 +4319,8 @@ pub mod funcs { } } - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod posix01 { pub mod stat_ { } @@ -4332,7 +4336,8 @@ pub mod funcs { } - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot #[cfg(target_os = "linux")] #[cfg(target_os = "android")] #[cfg(target_os = "macos")] @@ -4470,7 +4475,8 @@ pub mod funcs { } - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod bsd44 { } @@ -4496,7 +4502,8 @@ pub mod funcs { } - #[cfg(target_os = "win32")] + #[cfg(target_os = "windows")] + #[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot pub mod extra { pub mod kernel32 { -- cgit 1.4.1-3-g733a5