---
name: "SDL_MAJOR_VERSION"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_MAJOR_VERSION"
---

# SDL\_MAJOR\_VERSION(3)

The current major version of SDL headers.

## NAME

SDL\_MAJOR\_VERSION - The current major version of SDL headers.

## HEADER FILE

Defined in SDL3/SDL\_version.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**#define SDL\_MAJOR\_VERSION   3**

## DESCRIPTION

If this were SDL version 3.2.1, this value would be 3.

## AVAILABILITY

This macro is available since SDL 3.2.0.
