diff options
| author | bors <bors@rust-lang.org> | 2014-08-15 00:46:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-15 00:46:19 +0000 |
| commit | 6b5ec40d452d910148de7c87121acbbe1be8851a (patch) | |
| tree | a82605896ad61ef0337221819005e9d19c16c902 /src/libstd | |
| parent | dbb0cee682cdff796561cd6cca9bb6925a7b1ca2 (diff) | |
| parent | 88c27e099f94b26d19f9e266e728269d6a23c811 (diff) | |
auto merge of #16435 : vadimcn/rust/windows, r=pcwalton
Using "win32" to mean "Windows" is confusing, especially now, that Rust supports win64 builds. Let's call spade a spade.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/dynamic_lib.rs | 3 | ||||
| -rw-r--r-- | src/libstd/os.rs | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs index 766f92292b1..fb951d45c42 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 6a00368f9a2..d8eb0979190 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. |
