Replace #[cfg(target_os = "win32")] with #[cfg(target_os = "windows")]
This commit is contained in:
parent
98332b1a06
commit
3dfd12967a
17 changed files with 72 additions and 37 deletions
|
|
@ -73,7 +73,8 @@ impl PluginManager {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os="win32")]
|
||||
#[cfg(target_os = "windows")]
|
||||
#[cfg(stage0, target_os = "win32")] // NOTE: Remove after snapshot
|
||||
fn libname(mut n: String) -> String {
|
||||
n.push_str(".dll");
|
||||
n
|
||||
|
|
@ -85,7 +86,8 @@ fn libname(mut n: String) -> String {
|
|||
n
|
||||
}
|
||||
|
||||
#[cfg(not(target_os="win32"), not(target_os="macos"))]
|
||||
#[cfg(not(stage0), not(target_os="windows"), not(target_os="macos"))]
|
||||
#[cfg(stage0, not(target_os="win32"), not(target_os="macos"))] // NOTE: Remove after snapshot
|
||||
fn libname(n: String) -> String {
|
||||
let mut i = String::from_str("lib");
|
||||
i.push_str(n.as_slice());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue