sdl3_sys/generated/platform.rs
1//! SDL provides a means to identify the app's platform, both at compile time
2//! and runtime.
3
4unsafe extern "C" {
5 /// Get the name of the platform.
6 ///
7 /// Here are the names returned for some (but not all) supported platforms:
8 ///
9 /// - "Windows"
10 /// - "macOS"
11 /// - "Linux"
12 /// - "iOS"
13 /// - "Android"
14 ///
15 /// ## Return value
16 /// Returns the name of the platform. If the correct platform name is not
17 /// available, returns a string beginning with the text "Unknown".
18 ///
19 /// ## Availability
20 /// This function is available since SDL 3.2.0.
21 pub fn SDL_GetPlatform() -> *const ::core::ffi::c_char;
22}
23
24#[cfg(doc)]
25use crate::everything::*;