Go to the documentation of this file.
22#ifndef SDL_config_macosx_h_
23#define SDL_config_macosx_h_
29#include <AvailabilityMacros.h>
34 #define SIZEOF_VOIDP 8
36 #define SIZEOF_VOIDP 4
41#define HAVE_ALLOCA_H 1
44#define HAVE_INTTYPES_H 1
45#define HAVE_LIMITS_H 1
47#define HAVE_SIGNAL_H 1
48#define HAVE_STDINT_H 1
50#define HAVE_STRING_H 1
51#define HAVE_SYS_TYPES_H 1
52#define HAVE_LIBUNWIND_H 1
64#define HAVE_UNSETENV 1
79#define HAVE_STRTOK_R 1
83#define HAVE_STRTOULL 1
89#define HAVE_STRCASECMP 1
90#define HAVE_STRNCASECMP 1
92#define HAVE_VSNPRINTF 1
104#define HAVE_COPYSIGN 1
105#define HAVE_COPYSIGNF 1
121#define HAVE_LROUNDF 1
127#define HAVE_SCALBNF 1
136#define HAVE_SIGACTION 1
138#define HAVE_NANOSLEEP 1
139#define HAVE_SYSCONF 1
140#define HAVE_SYSCTLBYNAME 1
142#if defined(__has_include) && (defined(__i386__) || defined(__x86_64))
143# if __has_include(<immintrin.h>)
144# define HAVE_IMMINTRIN_H 1
148#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070)
149#define HAVE_O_CLOEXEC 1
152#define HAVE_GCC_ATOMICS 1
155#define SDL_AUDIO_DRIVER_COREAUDIO 1
156#define SDL_AUDIO_DRIVER_DISK 1
157#define SDL_AUDIO_DRIVER_DUMMY 1
160#define SDL_JOYSTICK_HIDAPI 1
161#define SDL_JOYSTICK_IOKIT 1
162#define SDL_JOYSTICK_VIRTUAL 1
163#define SDL_HAPTIC_IOKIT 1
166#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
167#define SDL_JOYSTICK_MFI 1
171#define SDL_SENSOR_DUMMY 1
174#define SDL_LOADSO_DLOPEN 1
177#define SDL_THREAD_PTHREAD 1
178#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
181#define SDL_TIMER_UNIX 1
184#define SDL_VIDEO_DRIVER_COCOA 1
185#define SDL_VIDEO_DRIVER_DUMMY 1
186#undef SDL_VIDEO_DRIVER_X11
187#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/opt/X11/lib/libX11.6.dylib"
188#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/opt/X11/lib/libXext.6.dylib"
189#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/opt/X11/lib/libXi.6.dylib"
190#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/opt/X11/lib/libXrandr.2.dylib"
191#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/opt/X11/lib/libXss.1.dylib"
192#define SDL_VIDEO_DRIVER_X11_XDBE 1
193#define SDL_VIDEO_DRIVER_X11_XRANDR 1
194#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
195#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
196#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
198#ifdef MAC_OS_X_VERSION_10_8
204#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
205#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
208#ifndef SDL_VIDEO_RENDER_OGL
209#define SDL_VIDEO_RENDER_OGL 1
212#ifndef SDL_VIDEO_RENDER_OGL_ES2
213#define SDL_VIDEO_RENDER_OGL_ES2 1
217#if TARGET_RT_64_BIT && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
218#define SDL_PLATFORM_SUPPORTS_METAL 1
220#define SDL_PLATFORM_SUPPORTS_METAL 0
223#ifndef SDL_VIDEO_RENDER_METAL
224#if SDL_PLATFORM_SUPPORTS_METAL
225#define SDL_VIDEO_RENDER_METAL 1
227#define SDL_VIDEO_RENDER_METAL 0
232#ifndef SDL_VIDEO_OPENGL
233#define SDL_VIDEO_OPENGL 1
235#ifndef SDL_VIDEO_OPENGL_ES2
236#define SDL_VIDEO_OPENGL_ES2 1
238#ifndef SDL_VIDEO_OPENGL_EGL
239#define SDL_VIDEO_OPENGL_EGL 1
241#ifndef SDL_VIDEO_OPENGL_CGL
242#define SDL_VIDEO_OPENGL_CGL 1
244#ifndef SDL_VIDEO_OPENGL_GLX
245#define SDL_VIDEO_OPENGL_GLX 1
249#ifndef SDL_VIDEO_VULKAN
250#if SDL_PLATFORM_SUPPORTS_METAL
251#define SDL_VIDEO_VULKAN 1
253#define SDL_VIDEO_VULKAN 0
257#ifndef SDL_VIDEO_METAL
258#if SDL_PLATFORM_SUPPORTS_METAL
259#define SDL_VIDEO_METAL 1
261#define SDL_VIDEO_METAL 0
266#define SDL_POWER_MACOSX 1
269#define SDL_FILESYSTEM_COCOA 1
273#define SDL_ALTIVEC_BLITTERS 1