SDL 3.0
SDL_platform_defines.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SDL_PLATFORM_WINDOWS   1
 
#define HAVE_WINAPIFAMILY_H   0
 
#define WINAPI_FAMILY_WINRT   0
 
#define SDL_WINAPI_FAMILY_PHONE   0
 
#define SDL_PLATFORM_WIN32   1
 

Macro Definition Documentation

◆ HAVE_WINAPIFAMILY_H

#define HAVE_WINAPIFAMILY_H   0

Definition at line 350 of file SDL_platform_defines.h.

◆ SDL_PLATFORM_WIN32

#define SDL_PLATFORM_WIN32   1

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

Despite the "32", this also covers 64-bit Windows; as an informal convention, its system layer tends to still be referred to as "the Win32 API."

Since
This macro is available since SDL 3.1.3.

Definition at line 417 of file SDL_platform_defines.h.

◆ SDL_PLATFORM_WINDOWS

#define SDL_PLATFORM_WINDOWS   1

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

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

Since
This macro is available since SDL 3.1.3.
See also
SDL_PLATFORM_WIN32
SDL_PLATFORM_XBOXONE
SDL_PLATFORM_XBOXSERIES
SDL_PLATFORM_WINGDK
SDL_PLATFORM_GDK

Definition at line 336 of file SDL_platform_defines.h.

◆ SDL_WINAPI_FAMILY_PHONE

#define SDL_WINAPI_FAMILY_PHONE   0

Definition at line 372 of file SDL_platform_defines.h.

◆ WINAPI_FAMILY_WINRT

#define WINAPI_FAMILY_WINRT   0

Definition at line 357 of file SDL_platform_defines.h.