1// Copyright 2023 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
45#[cfg(any(target_os = "android", target_os = "linux"))]
6pub mod linux;
78#[cfg(any(target_os = "fuchsia", target_os = "macos", target_os = "nto"))]
9pub mod stub;
1011#[cfg(windows)]
12pub mod windows;
1314cfg_if::cfg_if! {
15if #[cfg(any(target_os = "android", target_os = "linux"))] {
16pub use linux as platform;
17 } else if #[cfg(windows)] {
18pub use windows as platform;
19 } else if #[cfg(any(target_os = "fuchsia", target_os = "macos", target_os = "nto"))] {
20pub use stub as platform;
21 } else {
22compile_error!("Unsupported platform");
23 }
24}