))]
// Attributes needed when building as part of the standard library
-#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute))]
+#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))]
#![cfg_attr(stdbuild, no_std)]
#![cfg_attr(stdbuild, staged_api)]
#![cfg_attr(stdbuild, allow(warnings))]
if #[cfg(windows)] {
mod windows;
pub use windows::*;
- } else {
+ } else if #[cfg(unix)] {
mod unix;
pub use unix::*;
+ } else {
+ // Unknown target_family
}
}