SDL_NOLONGLONG(3)

πŸ’– SDL_NOLONGLONG πŸ’–

okay bestie, welcome to the SDL_NOLONGLONG(3) page, part of the SDL3 FUNCTIONS crew ✨ this one's short but she's important, so let's get into it 🫢


🌸 NAME 🌸

SDL_NOLONGLONG β€” don't let SDL use "long long" C types. no cap. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_stdinc.h>

#define SDL_NOLONGLONG 1

✨ DESCRIPTION ✨

so here's the tea, bestie β˜• SDL will define this little guy if it believes your compiler doesn't understand the "long long" syntax for C datatypes. literally it's giving old-compiler energy β€” this can happen on older compilers. πŸ™ˆ

but say it's your compiler that doesn't support "long long" and SDL doesn't know it? no stress πŸ’– it is safe to define this yourself to build against the SDL headers. you're valid, do your thing. πŸ‘‘

now, if this is defined, heads up: it will remove access to some C runtime support functions, like SDL_ulltoa and SDL_strtoll that refer to this datatype explicitly. 😭 the rest of SDL will still be available tho, so it's not a total loss. πŸ¦‹

πŸ’€ important warning, don't skip this one: SDL's own source code cannot be built with a compiler that has this defined, for various technical reasons. so like, don't try it. fr fr. 🚫

and that's the whole vibe, bestie! 🌈 this icon came to you from Simple Directmedia Layer, version SDL 3.4.18, and honestly? she ate. πŸ’…βœ¨ mwah, go forth and compile responsibly πŸŽ€πŸ’–πŸ«Ά

πŸ“¦ where this page comes from