1/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
2/*
3 Simple DirectMedia Layer
4 Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
5
6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages
8 arising from the use of this software.
9
10 Permission is granted to anyone to use this software for any purpose,
11 including commercial applications, and to alter it and redistribute it
12 freely, subject to the following restrictions:
13
14 1. The origin of this software must not be misrepresented; you must not
15 claim that you wrote the original software. If you use this software
16 in a product, an acknowledgment in the product documentation would be
17 appreciated but is not required.
18 2. Altered source versions must be plainly marked as such, and must not be
19 misrepresented as being the original software.
20 3. This notice may not be removed or altered from any source distribution.
21*/
22
23#ifndef SDL_config_h_
24#define SDL_config_h_
25
26/**
27 * \file SDL_config.h.in
28 *
29 * This is a set of defines to configure the SDL features
30 */
31
32/* General platform specific identifiers */
33#include "SDL_platform.h"
34
35/* Make sure that this isn't included by Visual C++ */
36#ifdef _MSC_VER
37#error You should run git checkout -f include/SDL_config.h
38#endif
39
40/* C language features */
41/* #undef const */
42/* #undef inline */
43/* #undef volatile */
44
45/* C datatypes */
46#if defined(__LP64__) || defined(_LP64) || defined(_WIN64)
47#define SIZEOF_VOIDP 8
48#else
49#define SIZEOF_VOIDP 4
50#endif
51
52#define HAVE_GCC_ATOMICS 1
53/* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
54
55/* Comment this if you want to build without any C library requirements */
56#define HAVE_LIBC 1
57#if HAVE_LIBC
58
59/* Useful headers */
60#define STDC_HEADERS 1
61#define HAVE_ALLOCA_H 1
62#define HAVE_CTYPE_H 1
63#define HAVE_FLOAT_H 1
64#define HAVE_ICONV_H 1
65#define HAVE_INTTYPES_H 1
66#define HAVE_LIMITS_H 1
67#define HAVE_MALLOC_H 1
68#define HAVE_MATH_H 1
69#define HAVE_MEMORY_H 1
70#define HAVE_SIGNAL_H 1
71#define HAVE_STDARG_H 1
72#define HAVE_STDINT_H 1
73#define HAVE_STDIO_H 1
74#define HAVE_STDLIB_H 1
75#define HAVE_STRINGS_H 1
76#define HAVE_STRING_H 1
77#define HAVE_SYS_TYPES_H 1
78#define HAVE_WCHAR_H 1
79/* #undef HAVE_PTHREAD_NP_H */
80/* #undef HAVE_LIBUNWIND_H */
81
82/* C library functions */
83#define HAVE_DLOPEN 1
84#define HAVE_MALLOC 1
85#define HAVE_CALLOC 1
86#define HAVE_REALLOC 1
87#define HAVE_FREE 1
88#define HAVE_ALLOCA 1
89#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
90#define HAVE_GETENV 1
91#define HAVE_SETENV 1
92#define HAVE_PUTENV 1
93#define HAVE_UNSETENV 1
94#endif
95#define HAVE_QSORT 1
96#define HAVE_ABS 1
97#define HAVE_BCOPY 1
98#define HAVE_MEMSET 1
99#define HAVE_MEMCPY 1
100#define HAVE_MEMMOVE 1
101#define HAVE_MEMCMP 1
102#define HAVE_WCSLEN 1
103/* #undef HAVE_WCSLCPY */
104/* #undef HAVE_WCSLCAT */
105/* #undef HAVE__WCSDUP */
106#define HAVE_WCSDUP 1
107#define HAVE_WCSSTR 1
108#define HAVE_WCSCMP 1
109#define HAVE_WCSNCMP 1
110#define HAVE_WCSCASECMP 1
111/* #undef HAVE__WCSICMP */
112#define HAVE_WCSNCASECMP 1
113/* #undef HAVE__WCSNICMP */
114#define HAVE_STRLEN 1
115/* #undef HAVE_STRLCPY */
116/* #undef HAVE_STRLCAT */
117/* #undef HAVE__STRREV */
118/* #undef HAVE__STRUPR */
119/* #undef HAVE__STRLWR */
120#define HAVE_INDEX 1
121#define HAVE_RINDEX 1
122#define HAVE_STRCHR 1
123#define HAVE_STRRCHR 1
124#define HAVE_STRSTR 1
125#define HAVE_STRTOK_R 1
126/* #undef HAVE_ITOA */
127/* #undef HAVE__LTOA */
128/* #undef HAVE__UITOA */
129/* #undef HAVE__ULTOA */
130#define HAVE_STRTOL 1
131#define HAVE_STRTOUL 1
132/* #undef HAVE__I64TOA */
133/* #undef HAVE__UI64TOA */
134#define HAVE_STRTOLL 1
135#define HAVE_STRTOULL 1
136#define HAVE_STRTOD 1
137#define HAVE_ATOI 1
138#define HAVE_ATOF 1
139#define HAVE_STRCMP 1
140#define HAVE_STRNCMP 1
141/* #undef HAVE__STRICMP */
142#define HAVE_STRCASECMP 1
143/* #undef HAVE__STRNICMP */
144#define HAVE_STRNCASECMP 1
145/* #undef HAVE_SSCANF */
146#define HAVE_VSSCANF 1
147/* #undef HAVE_SNPRINTF */
148#define HAVE_VSNPRINTF 1
149#define HAVE_M_PI /**/
150#define HAVE_ACOS 1
151#define HAVE_ACOSF 1
152#define HAVE_ASIN 1
153#define HAVE_ASINF 1
154#define HAVE_ATAN 1
155#define HAVE_ATANF 1
156#define HAVE_ATAN2 1
157#define HAVE_ATAN2F 1
158#define HAVE_CEIL 1
159#define HAVE_CEILF 1
160#define HAVE_COPYSIGN 1
161#define HAVE_COPYSIGNF 1
162#define HAVE_COS 1
163#define HAVE_COSF 1
164#define HAVE_EXP 1
165#define HAVE_EXPF 1
166#define HAVE_FABS 1
167#define HAVE_FABSF 1
168#define HAVE_FLOOR 1
169#define HAVE_FLOORF 1
170#define HAVE_FMOD 1
171#define HAVE_FMODF 1
172#define HAVE_LOG 1
173#define HAVE_LOGF 1
174#define HAVE_LOG10 1
175#define HAVE_LOG10F 1
176#define HAVE_LROUND 1
177#define HAVE_LROUNDF 1
178#define HAVE_POW 1
179#define HAVE_POWF 1
180#define HAVE_ROUND 1
181#define HAVE_ROUNDF 1
182#define HAVE_SCALBN 1
183#define HAVE_SCALBNF 1
184#define HAVE_SIN 1
185#define HAVE_SINF 1
186#define HAVE_SQRT 1
187#define HAVE_SQRTF 1
188#define HAVE_TAN 1
189#define HAVE_TANF 1
190#define HAVE_TRUNC 1
191#define HAVE_TRUNCF 1
192#define HAVE_FOPEN64 1
193#define HAVE_FSEEKO 1
194#define HAVE_FSEEKO64 1
195#define HAVE_SIGACTION 1
196#define HAVE_SA_SIGACTION 1
197#define HAVE_SETJMP 1
198#define HAVE_NANOSLEEP 1
199#define HAVE_SYSCONF 1
200/* #undef HAVE_SYSCTLBYNAME */
201#define HAVE_CLOCK_GETTIME 1
202/* #undef HAVE_GETPAGESIZE */
203#define HAVE_MPROTECT 1
204#define HAVE_ICONV 1
205#define HAVE_PTHREAD_SETNAME_NP 1
206/* #undef HAVE_PTHREAD_SET_NAME_NP */
207#define HAVE_SEM_TIMEDWAIT 1
208#define HAVE_GETAUXVAL 1
209/* #undef HAVE_ELF_AUX_INFO */
210#define HAVE_POLL 1
211#define HAVE__EXIT 1
212
213#else
214#define HAVE_STDARG_H 1
215#define HAVE_STDDEF_H 1
216#define HAVE_STDINT_H 1
217#endif /* HAVE_LIBC */
218
219#define HAVE_O_CLOEXEC 1
220/* #undef HAVE_ALTIVEC_H */
221#define HAVE_DBUS_DBUS_H 1
222#define HAVE_FCITX 1
223#define HAVE_SYS_INOTIFY_H 1
224#define HAVE_INOTIFY_INIT 1
225#define HAVE_INOTIFY_INIT1 1
226#define HAVE_INOTIFY 1
227#define HAVE_IBUS_IBUS_H 1
228#define HAVE_IMMINTRIN_H 1
229#define HAVE_LIBUDEV_H 1
230#define HAVE_LIBSAMPLERATE_H 1
231#define HAVE_LIBDECOR_H 1
232
233/* #undef HAVE_DDRAW_H */
234/* #undef HAVE_DINPUT_H */
235/* #undef HAVE_DSOUND_H */
236/* #undef HAVE_DXGI_H */
237/* #undef HAVE_WINDOWS_GAMING_INPUT_H */
238/* #undef HAVE_XINPUT_H */
239/* #undef HAVE_XINPUT_GAMEPAD_EX */
240/* #undef HAVE_XINPUT_STATE_EX */
241
242/* #undef HAVE_MMDEVICEAPI_H */
243/* #undef HAVE_AUDIOCLIENT_H */
244/* #undef HAVE_TPCSHRD_H */
245/* #undef HAVE_SENSORSAPI_H */
246
247/* SDL internal assertion support */
248/* #undef SDL_DEFAULT_ASSERT_LEVEL */
249
250/* Allow disabling of core subsystems */
251/* #undef SDL_ATOMIC_DISABLED */
252/* #undef SDL_AUDIO_DISABLED */
253/* #undef SDL_CPUINFO_DISABLED */
254/* #undef SDL_EVENTS_DISABLED */
255/* #undef SDL_FILE_DISABLED */
256/* #undef SDL_JOYSTICK_DISABLED */
257/* #undef SDL_HAPTIC_DISABLED */
258/* #undef SDL_HIDAPI_DISABLED */
259/* #undef SDL_SENSOR_DISABLED */
260/* #undef SDL_LOADSO_DISABLED */
261/* #undef SDL_RENDER_DISABLED */
262/* #undef SDL_THREADS_DISABLED */
263/* #undef SDL_TIMERS_DISABLED */
264/* #undef SDL_VIDEO_DISABLED */
265/* #undef SDL_POWER_DISABLED */
266/* #undef SDL_FILESYSTEM_DISABLED */
267
268/* Enable various audio drivers */
269/* #undef SDL_AUDIO_DRIVER_AAUDIO */
270#define SDL_AUDIO_DRIVER_ALSA 1
271/* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */
272/* #undef SDL_AUDIO_DRIVER_ANDROID */
273/* #undef SDL_AUDIO_DRIVER_ARTS */
274/* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
275/* #undef SDL_AUDIO_DRIVER_COREAUDIO */
276#define SDL_AUDIO_DRIVER_DISK 1
277/* #undef SDL_AUDIO_DRIVER_DSOUND */
278#define SDL_AUDIO_DRIVER_DUMMY 1
279/* #undef SDL_AUDIO_DRIVER_EMSCRIPTEN */
280/* #undef SDL_AUDIO_DRIVER_ESD */
281/* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
282/* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
283/* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
284/* #undef SDL_AUDIO_DRIVER_HAIKU */
285/* #undef SDL_AUDIO_DRIVER_JACK */
286/* #undef SDL_AUDIO_DRIVER_JACK_DYNAMIC */
287/* #undef SDL_AUDIO_DRIVER_NACL */
288/* #undef SDL_AUDIO_DRIVER_NAS */
289/* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
290/* #undef SDL_AUDIO_DRIVER_NETBSD */
291/* #undef SDL_AUDIO_DRIVER_OPENSLES */
292#define SDL_AUDIO_DRIVER_OSS 1
293/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
294/* #undef SDL_AUDIO_DRIVER_PAUDIO */
295#define SDL_AUDIO_DRIVER_PIPEWIRE 1
296#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "libpipewire-0.3.so.0"
297#define SDL_AUDIO_DRIVER_PULSEAUDIO 1
298/* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
299/* #undef SDL_AUDIO_DRIVER_QSA */
300#define SDL_AUDIO_DRIVER_SNDIO 1
301#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "libsndio.so.7"
302/* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
303/* #undef SDL_AUDIO_DRIVER_WASAPI */
304/* #undef SDL_AUDIO_DRIVER_WINMM */
305/* #undef SDL_AUDIO_DRIVER_OS2 */
306
307/* Enable various input drivers */
308#define SDL_INPUT_LINUXEV 1
309/* #undef SDL_INPUT_FBSDKBIO */
310#define SDL_INPUT_LINUXKD 1
311/* #undef SDL_INPUT_WSCONS */
312/* #undef SDL_JOYSTICK_HAIKU */
313/* #undef SDL_JOYSTICK_DINPUT */
314/* #undef SDL_JOYSTICK_WGI */
315/* #undef SDL_JOYSTICK_XINPUT */
316/* #undef SDL_JOYSTICK_DUMMY */
317/* #undef SDL_JOYSTICK_IOKIT */
318/* #undef SDL_JOYSTICK_MFI */
319#define SDL_JOYSTICK_LINUX 1
320/* #undef SDL_JOYSTICK_ANDROID */
321/* #undef SDL_JOYSTICK_OS2 */
322/* #undef SDL_JOYSTICK_USBHID */
323/* #undef SDL_HAVE_MACHINE_JOYSTICK_H */
324#define SDL_JOYSTICK_HIDAPI 1
325/* #undef SDL_JOYSTICK_RAWINPUT */
326/* #undef SDL_JOYSTICK_EMSCRIPTEN */
327#define SDL_JOYSTICK_VIRTUAL 1
328/* #undef SDL_HAPTIC_DUMMY */
329/* #undef SDL_HAPTIC_ANDROID */
330#define SDL_HAPTIC_LINUX 1
331/* #undef SDL_HAPTIC_IOKIT */
332/* #undef SDL_HAPTIC_DINPUT */
333/* #undef SDL_HAPTIC_XINPUT */
334
335/* Enable various sensor drivers */
336/* #undef SDL_SENSOR_ANDROID */
337/* #undef SDL_SENSOR_COREMOTION */
338/* #undef SDL_SENSOR_WINDOWS */
339#define SDL_SENSOR_DUMMY 1
340
341/* Enable various shared object loading systems */
342#define SDL_LOADSO_DLOPEN 1
343/* #undef SDL_LOADSO_DUMMY */
344/* #undef SDL_LOADSO_LDG */
345/* #undef SDL_LOADSO_WINDOWS */
346/* #undef SDL_LOADSO_OS2 */
347
348/* Enable various threading systems */
349/* #undef SDL_THREAD_GENERIC_COND_SUFFIX */
350#define SDL_THREAD_PTHREAD 1
351#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
352/* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
353/* #undef SDL_THREAD_WINDOWS */
354/* #undef SDL_THREAD_OS2 */
355
356/* Enable various timer systems */
357/* #undef SDL_TIMER_HAIKU */
358/* #undef SDL_TIMER_DUMMY */
359#define SDL_TIMER_UNIX 1
360/* #undef SDL_TIMER_WINDOWS */
361/* #undef SDL_TIMER_OS2 */
362
363/* Enable various video drivers */
364/* #undef SDL_VIDEO_DRIVER_HAIKU */
365/* #undef SDL_VIDEO_DRIVER_COCOA */
366/* #undef SDL_VIDEO_DRIVER_DIRECTFB */
367/* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
368#define SDL_VIDEO_DRIVER_DUMMY 1
369/* #undef SDL_VIDEO_DRIVER_WINDOWS */
370#define SDL_VIDEO_DRIVER_WAYLAND 1
371#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1
372/* #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC */
373/* #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL */
374/* #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR */
375/* #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON */
376/* #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR */
377#define SDL_VIDEO_DRIVER_X11 1
378/* #undef SDL_VIDEO_DRIVER_RPI */
379#define SDL_VIDEO_DRIVER_KMSDRM 1
380/* #undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC */
381/* #undef SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM */
382/* #undef SDL_VIDEO_DRIVER_ANDROID */
383/* #undef SDL_VIDEO_DRIVER_EMSCRIPTEN */
384/* #undef SDL_VIDEO_DRIVER_OFFSCREEN */
385/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC */
386/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT */
387/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR */
388/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA */
389/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 */
390/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES */
391/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR */
392/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS */
393/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE */
394#define SDL_VIDEO_DRIVER_X11_XCURSOR 1
395#define SDL_VIDEO_DRIVER_X11_XDBE 1
396#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
397#define SDL_VIDEO_DRIVER_X11_XINPUT2 1
398#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1
399#define SDL_VIDEO_DRIVER_X11_XFIXES 1
400#define SDL_VIDEO_DRIVER_X11_XRANDR 1
401#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
402#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
403#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
404#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1
405#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
406/* #undef SDL_VIDEO_DRIVER_NACL */
407/* #undef SDL_VIDEO_DRIVER_VIVANTE */
408/* #undef SDL_VIDEO_DRIVER_VIVANTE_VDK */
409/* #undef SDL_VIDEO_DRIVER_OS2 */
410/* #undef SDL_VIDEO_DRIVER_QNX */
411/* #undef SDL_VIDEO_DRIVER_RISCOS */
412
413/* #undef SDL_VIDEO_RENDER_D3D */
414/* #undef SDL_VIDEO_RENDER_D3D11 */
415#define SDL_VIDEO_RENDER_OGL 1
416/* #undef SDL_VIDEO_RENDER_OGL_ES */
417#define SDL_VIDEO_RENDER_OGL_ES2 1
418/* #undef SDL_VIDEO_RENDER_DIRECTFB */
419/* #undef SDL_VIDEO_RENDER_METAL */
420
421/* Enable OpenGL support */
422#define SDL_VIDEO_OPENGL 1
423/* #undef SDL_VIDEO_OPENGL_ES */
424#define SDL_VIDEO_OPENGL_ES2 1
425/* #undef SDL_VIDEO_OPENGL_BGL */
426/* #undef SDL_VIDEO_OPENGL_CGL */
427#define SDL_VIDEO_OPENGL_EGL 1
428#define SDL_VIDEO_OPENGL_GLX 1
429/* #undef SDL_VIDEO_OPENGL_WGL */
430/* #undef SDL_VIDEO_OPENGL_OSMESA */
431/* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
432
433/* Enable Vulkan support */
434#define SDL_VIDEO_VULKAN 1
435
436/* Enable Metal support */
437/* #undef SDL_VIDEO_METAL */
438
439/* Enable system power support */
440#define SDL_POWER_LINUX 1
441/* #undef SDL_POWER_WINDOWS */
442/* #undef SDL_POWER_MACOSX */
443/* #undef SDL_POWER_HAIKU */
444/* #undef SDL_POWER_ANDROID */
445/* #undef SDL_POWER_EMSCRIPTEN */
446/* #undef SDL_POWER_HARDWIRED */
447
448/* Enable system filesystem support */
449/* #undef SDL_FILESYSTEM_HAIKU */
450/* #undef SDL_FILESYSTEM_COCOA */
451/* #undef SDL_FILESYSTEM_DUMMY */
452#define SDL_FILESYSTEM_UNIX 1
453/* #undef SDL_FILESYSTEM_WINDOWS */
454/* #undef SDL_FILESYSTEM_NACL */
455/* #undef SDL_FILESYSTEM_ANDROID */
456/* #undef SDL_FILESYSTEM_EMSCRIPTEN */
457/* #undef SDL_FILESYSTEM_OS2 */
458/* #undef SDL_FILESYSTEM_RISCOS */
459
460/* Enable assembly routines */
461#define SDL_ASSEMBLY_ROUTINES 1
462/* #undef SDL_ALTIVEC_BLITTERS */
463/* #undef SDL_ARM_SIMD_BLITTERS */
464/* #undef SDL_ARM_NEON_BLITTERS */
465
466/* Whether SDL_DYNAMIC_API needs dlopen() */
467#define DYNAPI_NEEDS_DLOPEN 1
468
469/* Enable ime support */
470#define SDL_USE_IME 1
471
472/* Enable dynamic udev support */
473#define SDL_UDEV_DYNAMIC "libudev.so.1"
474
475/* Enable dynamic libusb support */
476/* #undef SDL_LIBUSB_DYNAMIC */
477
478/* Enable dynamic libsamplerate support */
479#define SDL_LIBSAMPLERATE_DYNAMIC "libsamplerate.so.0"
480
481#endif /* SDL_config_h_ */
482

source code of include/x86_64-linux-gnu/SDL2/_real_SDL_config.h