xref: /aosp_15_r20/external/crosvm/net_util/src/slirp/sys.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2022 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.
4 
5 cfg_if::cfg_if! {
6     if #[cfg(windows)] {
7         pub mod windows;
8         use windows as platform;
9     } else {
10         compile_error!("Unsupported platform (slirp supported only on Windows)");
11     }
12 }
13 
14 pub use platform::handler;
15 pub use platform::Slirp;
16