---
name: "SDL_HAS_BUILTIN"
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_HAS_BUILTIN"
---

# SDL\_HAS\_BUILTIN(3)

Check if the compiler supports a given builtin functionality.

## NAME

SDL\_HAS\_BUILTIN - Check if the compiler supports a given builtin functionality.

## HEADER FILE

Defined in SDL3/SDL\_begin\_code.h

## SYNOPSIS

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

**#define SDL\_HAS\_BUILTIN(x) \_\_has\_builtin(x)**

## DESCRIPTION

This allows preprocessor checks for things that otherwise might fail to compile.

Supported by virtually all clang versions and more-recent GCCs. Use this instead of checking the clang version if possible.

On compilers without has\_builtin support, this is defined to 0 (always false).

## AVAILABILITY

This macro is available since SDL 3.2.0.
