Path: blob/master/thirdparty/sdl/include/SDL3/SDL_platform.h
9912 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021/**22* # CategoryPlatform23*24* SDL provides a means to identify the app's platform, both at compile time25* and runtime.26*/2728#ifndef SDL_platform_h_29#define SDL_platform_h_3031#include <SDL3/SDL_platform_defines.h>3233#include <SDL3/SDL_begin_code.h>34/* Set up for C function definitions, even when using C++ */35#ifdef __cplusplus36extern "C" {37#endif3839/**40* Get the name of the platform.41*42* Here are the names returned for some (but not all) supported platforms:43*44* - "Windows"45* - "macOS"46* - "Linux"47* - "iOS"48* - "Android"49*50* \returns the name of the platform. If the correct platform name is not51* available, returns a string beginning with the text "Unknown".52*53* \since This function is available since SDL 3.2.0.54*/55extern SDL_DECLSPEC const char * SDLCALL SDL_GetPlatform(void);5657/* Ends C function definitions when using C++ */58#ifdef __cplusplus59}60#endif61#include <SDL3/SDL_close_code.h>6263#endif /* SDL_platform_h_ */646566