---
name: "SDL_VERSIONNUM_MAJOR"
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_VERSIONNUM_MAJOR"
---

# SDL\_VERSIONNUM\_MAJOR(3)

This macro extracts the major version from a version number

## NAME

SDL\_VERSIONNUM\_MAJOR - This macro extracts the major version from a version number

## HEADER FILE

Defined in SDL3/SDL\_version.h

## SYNOPSIS

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

**#define SDL\_VERSIONNUM\_MAJOR(version) ((version) / 1000000)**

## DESCRIPTION

1002003 becomes 1.

## AVAILABILITY

This macro is available since SDL 3.2.0.
