1 // Copyright 2022 The Chromium OS Authors. All rights reserved. 2 // SPDX-License-Identifier: Apache-2.0 3 // 4 //! A wrapper module for platform dependent code. 5 6 cfg_if::cfg_if! { 7 if #[cfg(unix)] { 8 mod unix; 9 pub use unix::*; 10 } else if #[cfg(windows)] { 11 mod windows; 12 pub use windows::*; 13 } else { 14 compile_error!("Unsupported platform"); 15 } 16 } 17