about summary refs log tree commit diff
path: root/src/libstd
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/libstd
parent98332b1a06193c4f83fc2613f72273b50b77f2b3 (diff)
downloadrust-3dfd12967aed35b7788f7d3c7460b76b76e70b60.tar.gz
rust-3dfd12967aed35b7788f7d3c7460b76b76e70b60.zip
Replace #[cfg(target_os = "win32")] with #[cfg(target_os = "windows")]
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/dynamic_lib.rs3
-rw-r--r--src/libstd/os.rs5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs
index 1ac37458e24..c1e8fd8832a 100644
--- a/src/libstd/dynamic_lib.rs
+++ b/src/libstd/dynamic_lib.rs
@@ -278,7 +278,8 @@ pub mod dl {
     }
 }
 
-#[cfg(target_os = "win32")]
+#[cfg(target_os = "windows")]
+#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
 pub mod dl {
     use c_str::ToCStr;
     use iter::Iterator;
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index 85445e49139..7a3991b5696 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -1842,7 +1842,8 @@ pub mod consts {
     pub static EXE_EXTENSION: &'static str = "";
 }
 
-#[cfg(target_os = "win32")]
+#[cfg(target_os = "windows")]
+#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
 pub mod consts {
     pub use os::arch_consts::ARCH;
 
@@ -1850,7 +1851,7 @@ pub mod consts {
 
     /// A string describing the specific operating system in use: in this
     /// case, `win32`.
-    pub static SYSNAME: &'static str = "win32";
+    pub static SYSNAME: &'static str = "windows";
 
     /// Specifies the filename prefix used for shared libraries on this
     /// platform: in this case, the empty string.