Go to the documentation of this file.
28#ifndef SDL_platform_defines_h_
29#define SDL_platform_defines_h_
39#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
43#if defined(_arch_dreamcast)
45#define __DREAMCAST__ 1
47#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
51#if defined(hpux) || defined(__hpux) || defined(__hpux__)
55#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
59#if (defined(linux) || defined(__linux) || defined(__linux__))
63#if defined(ANDROID) || defined(__ANDROID__)
75#include <AvailabilityMacros.h>
76#include <TargetConditionals.h>
82#ifndef TARGET_OS_MACCATALYST
83#define TARGET_OS_MACCATALYST 0
86#define TARGET_OS_IOS 0
88#ifndef TARGET_OS_IPHONE
89#define TARGET_OS_IPHONE 0
94#ifndef TARGET_OS_SIMULATOR
95#define TARGET_OS_SIMULATOR 0
108#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
109# error SDL for macOS only supports deploying on 10.7 and above.
114#if defined(__NetBSD__)
118#if defined(__OpenBSD__)
122#if defined(__OS2__) || defined(__EMX__)
126#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
130#if defined(__QNXNTO__)
134#if defined(riscos) || defined(__riscos) || defined(__riscos__)
138#if defined(__sun) && defined(__SVR4)
143#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
145#if defined(_MSC_VER) && defined(__has_include)
146#if __has_include(<winapifamily.h>)
147#define HAVE_WINAPIFAMILY_H 1
149#define HAVE_WINAPIFAMILY_H 0
153#elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_)
154#define HAVE_WINAPIFAMILY_H 1
156#define HAVE_WINAPIFAMILY_H 0
159#if HAVE_WINAPIFAMILY_H
160#include <winapifamily.h>
161#define WINAPI_FAMILY_WINRT (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP))
163#define WINAPI_FAMILY_WINRT 0
166#if WINAPI_FAMILY_WINRT
169#elif defined(_GAMING_DESKTOP)
172#elif defined(_GAMING_XBOX_XBOXONE)
175#elif defined(_GAMING_XBOX_SCARLETT)
177#define __XBOXSERIES__ 1
184#if defined(__WINDOWS__)
189#if defined(__WINGDK__) || defined(__XBOXONE__) || defined(__XBOXSERIES__)