SDL_PLATFORM_HPUX(3)

πŸ’– SDL_PLATFORM_HPUX πŸ’–

okay so bestie, welcome to the SDL_PLATFORM_HPUX(3) page β€” part of the SDL3 FUNCTIONS collection, and honestly it's a short one but it's important okay. it's giving "small but mighty." πŸ¦‹


✨ NAME ✨

SDL_PLATFORM_HPUX β€” a preprocessor macro that is only defined if you're compiling for HP-UX. that's it. that's the whole vibe. no cap. πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_HPUX 1

so you pull in SDL_platform_defines.h, and if the universe (and the compiler) says so, SDL_PLATFORM_HPUX shows up defined as 1. iconic behavior fr fr. 🌸


✨ AVAILABILITY ✨

this macro has been available since SDL 3.2.0. so if you're on anything older… yeah, she's not there yet. πŸ™ˆ


heads up bestie: this macro is only defined when compiling for HP-UX β€” so don't go using it as a general-purpose "am I on HP-UX?" check at runtime, because it literally will not exist on other platforms. guard it properly, okay? 🫢

mwah πŸ’‹ that's the whole page β€” short, sweet, and completely slaying. this little number comes to you from Simple Directmedia Layer, rocking SDL 3.4.18. go forth and #ifdef responsibly, queen. πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from