summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/include/SDL_config_minimal.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/include/SDL_config_minimal.h
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/include/SDL_config_minimal.h')
-rw-r--r--src/contrib/SDL-2.30.2/include/SDL_config_minimal.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/include/SDL_config_minimal.h b/src/contrib/SDL-2.30.2/include/SDL_config_minimal.h
new file mode 100644
index 0000000..ceedda2
--- /dev/null
+++ b/src/contrib/SDL-2.30.2/include/SDL_config_minimal.h
@@ -0,0 +1,95 @@
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2024 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_minimal_h_
23#define SDL_config_minimal_h_
24#define SDL_config_h_
25
26#include "SDL_platform.h"
27
28/**
29 * \file SDL_config_minimal.h
30 *
31 * This is the minimal configuration that can be used to build SDL.
32 */
33
34#define HAVE_STDARG_H 1
35#define HAVE_STDDEF_H 1
36
37#if !defined(HAVE_STDINT_H) && !defined(_STDINT_H_)
38/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
39#if defined(_MSC_VER) && (_MSC_VER < 1600)
40typedef signed __int8 int8_t;
41typedef unsigned __int8 uint8_t;
42typedef signed __int16 int16_t;
43typedef unsigned __int16 uint16_t;
44typedef signed __int32 int32_t;
45typedef unsigned __int32 uint32_t;
46typedef signed __int64 int64_t;
47typedef unsigned __int64 uint64_t;
48#ifndef _UINTPTR_T_DEFINED
49#ifdef _WIN64
50typedef unsigned __int64 uintptr_t;
51#else
52typedef unsigned int uintptr_t;
53#endif
54#define _UINTPTR_T_DEFINED
55#endif
56#else
57#define HAVE_STDINT_H 1
58#endif /* Visual Studio 2008 */
59#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
60
61#ifdef __GNUC__
62#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
63#endif
64
65/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
66#define SDL_AUDIO_DRIVER_DUMMY 1
67
68/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
69#define SDL_JOYSTICK_DISABLED 1
70
71/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
72#define SDL_HAPTIC_DISABLED 1
73
74/* Enable the stub HIDAPI */
75#define SDL_HIDAPI_DISABLED 1
76
77/* Enable the stub sensor driver (src/sensor/dummy/\*.c) */
78#define SDL_SENSOR_DISABLED 1
79
80/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
81#define SDL_LOADSO_DISABLED 1
82
83/* Enable the stub thread support (src/thread/generic/\*.c) */
84#define SDL_THREADS_DISABLED 1
85
86/* Enable the stub timer support (src/timer/dummy/\*.c) */
87#define SDL_TIMERS_DISABLED 1
88
89/* Enable the dummy video driver (src/video/dummy/\*.c) */
90#define SDL_VIDEO_DRIVER_DUMMY 1
91
92/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
93#define SDL_FILESYSTEM_DUMMY 1
94
95#endif /* SDL_config_minimal_h_ */