SDL_PLATFORM_FREEBSD(3)
β¨ SDL_PLATFORM_FREEBSD β¨
okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and it's genuinely so short it's giving little snack energy π β but it matters, so let's go π
πΈ NAME πΈ
SDL_PLATFORM_FREEBSD β a preprocessor macro that is only defined if you're compiling for FreeBSD.
like. only then. no FreeBSD, no macro. that's the whole vibe check π¦
π SYNOPSIS π
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_FREEBSD 1
so you pull in the header, and if the universe agrees that you're on FreeBSD, the macro is justβ¦ there. set to 1. iconic. no cap π₯
π AVAILABILITY π
This macro has been available since SDL 3.2.0. she's new-ish, she's here, she ate π
heads up bestie: if you're not compiling for FreeBSD, this macro literally does not exist β so don't go using it in a#ifdefand expecting a cute little0back, because you will simply not get one π
Simple Directmedia Layer Β· SDL 3.4.18 Β· that's the source and the version, mwah π stay compiling, 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