blob: 017a477c1f8a33ee13ee5f92808e3a381c8f9f0c [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#[cfg(any(target_os = "android", target_os = "linux"))]
pub mod unix;
#[cfg(windows)]
pub mod windows;
cfg_if::cfg_if! {
if #[cfg(any(target_os = "android", target_os = "linux"))] {
pub use unix as platform;
pub use platform::*;
} else if #[cfg(windows)] {
pub use windows as platform;
pub use platform::*;
} else {
compile_error!("Unsupported platform");
}
}