Adjust syntax

This commit is contained in:
Caio
2024-12-22 17:12:42 -03:00
parent 426d173423
commit c89f0dc01d
7 changed files with 528 additions and 21 deletions

View File

@@ -4,6 +4,7 @@
//! green/native threading. This is just a bare-bones enough solution for
//! librustdoc, it is not production quality at all.
#[cfg(bootstrap)]
cfg_match! {
cfg(target_os = "linux") => {
mod linux;
@@ -27,4 +28,28 @@ cfg_match! {
}
}
#[cfg(not(bootstrap))]
cfg_match! {
target_os = "linux" => {
mod linux;
use linux as imp;
}
target_os = "redox" => {
mod linux;
use linux as imp;
}
unix => {
mod unix;
use unix as imp;
}
windows => {
mod windows;
use self::windows as imp;
}
_ => {
mod unsupported;
use unsupported as imp;
}
}
pub use imp::Lock;