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