SDL_PLATFORM_UNIX(3)
π SDL_PLATFORM_UNIX π
okay bestie, gather round, because this one is a whole preprocessor macro and she only shows up when you're compiling for a Unix-like system. that's it. that's the vibe. she's the "you're on unix, babe" flag and she does not elaborate π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_UNIX 1
like. she's literally just a 1. iconic behavior honestly π
πΈ DESCRIPTION πΈ
so here's the tea: some other platforms β Linux being the main character example β might define this one in addition to their own primary define. so don't be out here thinking it's either/or, because it is very much both/and. she's a plus-one, not a replacement π«Ά
π¦ AVAILABILITY π¦
this macro has been serving since SDL 3.2.0 β so if you're on anything older, no she isn't there, and that's on the version, not on you π
and that's the whole page, fr fr β no cap, it's a short one.
signing off with love from the Simple Directmedia Layer girlies, SDL 3.4.18, bestie π mwah, go compile something cute πβ¨π
π¦ 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