(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)![](/static_files/link.svg)
SDL_MAJOR_VERSION
The current major version of SDL headers.
Defined in <SDL3/SDL_version.h>
Syntax![](/static_files/link.svg)
#define SDL_MAJOR_VERSION 3
If this were SDL version 3.2.1, this value would be 3.
Version![](/static_files/link.svg)
This macro is available since SDL 3.0.0.
CategoryAPI, CategoryAPIMacro, CategoryVersion