---
name: "SDL_PLATFORM_APPLE"
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_PLATFORM_APPLE"
---

# SDL\_PLATFORM\_APPLE(3)

A preprocessor macro that is only defined if compiling for Apple platforms.

## NAME

SDL\_PLATFORM\_APPLE - A preprocessor macro that is only defined if compiling for Apple platforms.

## HEADER FILE

Defined in SDL3/SDL\_platform\_defines.h

## SYNOPSIS

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

**#define SDL\_PLATFORM\_APPLE 1**

## DESCRIPTION

iOS, macOS, etc will additionally define a more specific platform macro.

## AVAILABILITY

This macro is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_PLATFORM\_MACOS**(3)](/SDL_PLATFORM_MACOS/3.md), **•**(3), [**SDL\_PLATFORM\_IOS**(3)](/SDL_PLATFORM_IOS/3.md), **•**(3), [**SDL\_PLATFORM\_TVOS**(3)](/SDL_PLATFORM_TVOS/3.md), **•**(3), [**SDL\_PLATFORM\_VISIONOS**(3)](/SDL_PLATFORM_VISIONOS/3.md)
