SDL_PLATFORM_GDK(3)

πŸ’– SDL_PLATFORM_GDK πŸ’–

okay bestie, welcome to the SDL_PLATFORM_GDK(3) page, straight outta the SDL3 FUNCTIONS manual. this one is short, sweet, and honestly kinda iconic β€” it's a preprocessor macro situation, no cap. πŸŽ€


✨ NAME ✨

SDL_PLATFORM_GDK β€” it's a preprocessor macro that only gets defined when you're compiling for Microsoft GDK, on any platform. like, any platform. it doesn't care. 🌈


✨ SYNOPSIS ✨

so here's the vibe, literally the whole thing:

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_GDK 1

that's it. that's the whole synopsis. she's lowkey minimal. πŸ’…


✨ AVAILABILITY ✨

this macro has been serving since SDL 3.2.0. she's not new new, but she's not ancient either β€” she's in her prime. πŸ‘‘


fr fr, remember: this macro is only defined if you're compiling for Microsoft GDK. if you're out here on some other target and you're checking for SDL_PLATFORM_GDK, bestie... she's not there. don't be surprised. 🫢

slay, that's the whole page. mwah. πŸ’‹

later bestie β€” this page came to you from the Simple Directmedia Layer crew, version SDL 3.4.18, and it lives in the SDL3 FUNCTIONS manual. go forth and #ifdef responsibly. πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from