mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
45 lines
1.1 KiB
Rust
45 lines
1.1 KiB
Rust
pub use self::platform::*;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
#[path = "windows/mod.rs"]
|
|
mod platform;
|
|
#[cfg(any(
|
|
target_os = "linux",
|
|
target_os = "dragonfly",
|
|
target_os = "freebsd",
|
|
target_os = "netbsd",
|
|
target_os = "openbsd"
|
|
))]
|
|
#[path = "linux/mod.rs"]
|
|
mod platform;
|
|
#[cfg(target_os = "macos")]
|
|
#[path = "macos/mod.rs"]
|
|
mod platform;
|
|
#[cfg(target_os = "android")]
|
|
#[path = "android/mod.rs"]
|
|
mod platform;
|
|
#[cfg(target_os = "ios")]
|
|
#[path = "ios/mod.rs"]
|
|
mod platform;
|
|
#[cfg(target_os = "emscripten")]
|
|
#[path = "emscripten/mod.rs"]
|
|
mod platform;
|
|
#[cfg(target_arch = "wasm32")]
|
|
#[path = "web/mod.rs"]
|
|
mod platform;
|
|
|
|
#[cfg(all(
|
|
not(target_os = "ios"),
|
|
not(target_os = "windows"),
|
|
not(target_os = "linux"),
|
|
not(target_os = "macos"),
|
|
not(target_os = "android"),
|
|
not(target_os = "dragonfly"),
|
|
not(target_os = "freebsd"),
|
|
not(target_os = "netbsd"),
|
|
not(target_os = "openbsd"),
|
|
not(target_os = "emscripten"),
|
|
not(target_arch = "wasm32"),
|
|
))]
|
|
compile_error!("The platform you're compiling for is not supported by winit");
|