---
name: "SDL_PLATFORM_WINDOWS"
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_WINDOWS"
---

# SDL\_PLATFORM\_WINDOWS(3)

A preprocessor macro that is only defined if compiling for Windows.

## NAME

SDL\_PLATFORM\_WINDOWS - A preprocessor macro that is only defined if compiling for Windows.

## HEADER FILE

Defined in SDL3/SDL\_platform\_defines.h

## SYNOPSIS

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

**#define SDL\_PLATFORM\_WINDOWS 1**

## DESCRIPTION

This also covers several other platforms, like Microsoft GDK, Xbox, WinRT, etc. Each will have their own more-specific platform macros, too.

## AVAILABILITY

This macro is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_PLATFORM\_WIN32**(3)](/SDL_PLATFORM_WIN32/3.md), **•**(3), [**SDL\_PLATFORM\_XBOXONE**(3)](/SDL_PLATFORM_XBOXONE/3.md), **•**(3), [**SDL\_PLATFORM\_XBOXSERIES**(3)](/SDL_PLATFORM_XBOXSERIES/3.md), **•**(3), [**SDL\_PLATFORM\_WINGDK**(3)](/SDL_PLATFORM_WINGDK/3.md), **•**(3), [**SDL\_PLATFORM\_GDK**(3)](/SDL_PLATFORM_GDK/3.md)
