SDL_PLATFORM_SOLARIS(3)
π SDL_PLATFORM_SOLARIS π
okay bestie, welcome to the SDL_PLATFORM_SOLARIS(3) page β it's part of the SDL3 FUNCTIONS collection, and it's a short one but it's lowkey iconic. no cap, this whole page is about one preprocessor macro and honestly? she ate. β¨
πΈ NAME πΈ
SDL_PLATFORM_SOLARIS β a preprocessor macro that is only defined if compiling for SunOS/Solaris. that's it, that's the whole vibe. it's giving "i exist, therefore you know what platform you're on" π¦
β¨ SYNOPSIS β¨
so here's how you summon her:
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_SOLARIS 1
like yes, that's the entire thing. pull in the header, and the macro is there with a value of 1 when you're building for SunOS/Solaris. π
π AVAILABILITY π
- this macro has been available since SDL 3.2.0 β so if you're on anything older, bestie, she simply isn't there yet π
ngl, the important part is the only defined if β do not go assuming SDL_PLATFORM_SOLARIS is always defined. check for it, don't just use it. that's the whole point, fr fr. π
and that's the page!! mwah π«Ά this little cutie came from the Simple Directmedia Layer source, living in SDL 3.4.18, filed under SDL_PLATFORM_SOLARIS(3) β go forth and compile conditionally, queen πππ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms