about summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2014-08-10 21:26:45 -0700
committerVadim Chugunov <vadimcn@gmail.com>2014-08-12 00:13:43 -0700
commit3dfd12967aed35b7788f7d3c7460b76b76e70b60 (patch)
tree6c28e2873f65ce3bc29edacd4a7e3f2bf4eb5725 /src/liblibc
parent98332b1a06193c4f83fc2613f72273b50b77f2b3 (diff)
downloadrust-3dfd12967aed35b7788f7d3c7460b76b76e70b60.tar.gz
rust-3dfd12967aed35b7788f7d3c7460b76b76e70b60.zip
Replace #[cfg(target_os = "win32")] with #[cfg(target_os = "windows")]
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs21
1 files changed, 14 insertions, 7 deletions
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 {