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