1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22#ifndef SDL_config_unix_h_
23#define SDL_config_unix_h_
24
25#include "SDL_platform.h"
26
27/* C datatypes */
28#if defined(__LP64__) || defined(_LP64) || defined(_WIN64)
29#define SIZEOF_VOIDP 8
30#else
31#define SIZEOF_VOIDP 4
32#endif
33
34#define HAVE_GCC_ATOMICS 1
35
36/* Useful headers */
37#define STDC_HEADERS 1
38#define HAVE_ALLOCA_H 1
39#define HAVE_CTYPE_H 1
40#define HAVE_FLOAT_H 1
41#define HAVE_ICONV_H 1
42#define HAVE_INTTYPES_H 1
43#define HAVE_LIMITS_H 1
44#define HAVE_MALLOC_H 1
45#define HAVE_MATH_H 1
46#define HAVE_MEMORY_H 1
47#define HAVE_SIGNAL_H 1
48#define HAVE_STDARG_H 1
49#define HAVE_STDINT_H 1
50#define HAVE_STDIO_H 1
51#define HAVE_STDLIB_H 1
52#define HAVE_STRINGS_H 1
53#define HAVE_STRING_H 1
54#define HAVE_SYS_TYPES_H 1
55#define HAVE_WCHAR_H 1
56
57#define SDL_VIDEO_DRIVER_X11 1
58
59#if defined(__LINUX__)
60#define SDL_VIDEO_DRIVER_KMSDRM 1
61#define SDL_VIDEO_DRIVER_WAYLAND 1
62#endif
63
64/* Enable OpenGL support */
65#define SDL_VIDEO_OPENGL 1
66#define SDL_VIDEO_OPENGL_ES 1
67
68/* Enable Vulkan support */
69#if defined(__LINUX__)
70#define SDL_VIDEO_VULKAN 1
71#endif
72
73#endif /* SDL_config_unix_h_ */
74