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
40 #define STDC_HEADERS 1
41 #define HAVE_ALLOCA_H 1
42 #define HAVE_CTYPE_H 1
43 #define HAVE_FLOAT_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
49 #define HAVE_STDIO_H 1
50 #define HAVE_STRING_H 1
51 #define HAVE_SYS_TYPES_H 1
52 #define HAVE_LIBUNWIND_H 1
58 #define HAVE_REALLOC 1
64 #define HAVE_UNSETENV 1
66 #define HAVE_BSEARCH 1
71 #define HAVE_MEMMOVE 1
74 #define HAVE_STRLCPY 1
75 #define HAVE_STRLCAT 1
77 #define HAVE_STRRCHR 1
79 #define HAVE_STRTOK_R 1
81 #define HAVE_STRTOUL 1
82 #define HAVE_STRTOLL 1
83 #define HAVE_STRTOULL 1
88 #define HAVE_STRNCMP 1
89 #define HAVE_STRCASECMP 1
90 #define HAVE_STRNCASECMP 1
91 #define HAVE_STRCASESTR 1
92 #define HAVE_VSSCANF 1
93 #define HAVE_VSNPRINTF 1
102 #define HAVE_ATAN2F 1
105 #define HAVE_COPYSIGN 1
106 #define HAVE_COPYSIGNF 1
114 #define HAVE_FLOORF 1
120 #define HAVE_LOG10F 1
121 #define HAVE_LROUND 1
122 #define HAVE_LROUNDF 1
126 #define HAVE_ROUNDF 1
127 #define HAVE_SCALBN 1
128 #define HAVE_SCALBNF 1
136 #define HAVE_TRUNCF 1
137 #define HAVE_SIGACTION 1
138 #define HAVE_SETJMP 1
139 #define HAVE_NANOSLEEP 1
140 #define HAVE_SYSCONF 1
141 #define HAVE_SYSCTLBYNAME 1
143 #if defined(__has_include) && (defined(__i386__) || defined(__x86_64))
144 # if __has_include(<immintrin.h>)
145 # define HAVE_IMMINTRIN_H 1
149 #if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070)
150 #define HAVE_O_CLOEXEC 1
153 #define HAVE_GCC_ATOMICS 1
156 #define SDL_AUDIO_DRIVER_COREAUDIO 1
157 #define SDL_AUDIO_DRIVER_DISK 1
158 #define SDL_AUDIO_DRIVER_DUMMY 1
161 #define SDL_JOYSTICK_HIDAPI 1
162 #define SDL_JOYSTICK_IOKIT 1
163 #define SDL_JOYSTICK_VIRTUAL 1
164 #define SDL_HAPTIC_IOKIT 1
167 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
168 #define SDL_JOYSTICK_MFI 1
172 #define SDL_SENSOR_DUMMY 1
175 #define SDL_LOADSO_DLOPEN 1
178 #define SDL_THREAD_PTHREAD 1
179 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
182 #define SDL_TIMER_UNIX 1
185 #define SDL_VIDEO_DRIVER_COCOA 1
186 #define SDL_VIDEO_DRIVER_DUMMY 1
187 #undef SDL_VIDEO_DRIVER_X11
188 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "/opt/X11/lib/libX11.6.dylib"
189 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/opt/X11/lib/libXext.6.dylib"
190 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "/opt/X11/lib/libXi.6.dylib"
191 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/opt/X11/lib/libXrandr.2.dylib"
192 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/opt/X11/lib/libXss.1.dylib"
193 #define SDL_VIDEO_DRIVER_X11_XDBE 1
194 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
195 #define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
196 #define SDL_VIDEO_DRIVER_X11_XSHAPE 1
197 #define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
199 #ifdef MAC_OS_X_VERSION_10_8
205 #define SDL_VIDEO_DRIVER_X11_XINPUT2 1
206 #define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
209 #ifndef SDL_VIDEO_RENDER_OGL
210 #define SDL_VIDEO_RENDER_OGL 1
213 #ifndef SDL_VIDEO_RENDER_OGL_ES2
214 #define SDL_VIDEO_RENDER_OGL_ES2 1
218 #if TARGET_RT_64_BIT && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
219 #define SDL_PLATFORM_SUPPORTS_METAL 1
221 #define SDL_PLATFORM_SUPPORTS_METAL 0
224 #ifndef SDL_VIDEO_RENDER_METAL
225 #if SDL_PLATFORM_SUPPORTS_METAL
226 #define SDL_VIDEO_RENDER_METAL 1
228 #define SDL_VIDEO_RENDER_METAL 0
233 #ifndef SDL_VIDEO_OPENGL
234 #define SDL_VIDEO_OPENGL 1
236 #ifndef SDL_VIDEO_OPENGL_ES2
237 #define SDL_VIDEO_OPENGL_ES2 1
239 #ifndef SDL_VIDEO_OPENGL_EGL
240 #define SDL_VIDEO_OPENGL_EGL 1
242 #ifndef SDL_VIDEO_OPENGL_CGL
243 #define SDL_VIDEO_OPENGL_CGL 1
245 #ifndef SDL_VIDEO_OPENGL_GLX
246 #define SDL_VIDEO_OPENGL_GLX 1
250 #ifndef SDL_VIDEO_VULKAN
251 #if SDL_PLATFORM_SUPPORTS_METAL
252 #define SDL_VIDEO_VULKAN 1
254 #define SDL_VIDEO_VULKAN 0
258 #ifndef SDL_VIDEO_METAL
259 #if SDL_PLATFORM_SUPPORTS_METAL
260 #define SDL_VIDEO_METAL 1
262 #define SDL_VIDEO_METAL 0
267 #define SDL_POWER_MACOSX 1
270 #define SDL_FILESYSTEM_COCOA 1
274 #define SDL_ALTIVEC_BLITTERS 1