Path: blob/main/system/include/SDL/SDL_config_minimal.h
6169 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2011 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/2021#ifndef _SDL_config_minimal_h22#define _SDL_config_minimal_h2324#include "SDL_platform.h"2526/**27* \file SDL_config_minimal.h28*29* This is the minimal configuration that can be used to build SDL.30*/3132#include <stddef.h>33#include <stdarg.h>3435#if !defined(__EMSCRIPTEN__) && !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)36typedef unsigned int size_t;37typedef signed char int8_t;38typedef unsigned char uint8_t;39typedef signed short int16_t;40typedef unsigned short uint16_t;41typedef signed int int32_t;42typedef unsigned int uint32_t;43typedef signed long long int64_t;44typedef unsigned long long uint64_t;45typedef unsigned long uintptr_t;46#endif /* !_STDINT_H_ && !HAVE_STDINT_H */4748#ifdef __GNUC__49#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 150#endif5152/* Enable the dummy audio driver (src/audio/dummy/\*.c) */53#define SDL_AUDIO_DRIVER_DUMMY 15455/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */56#define SDL_JOYSTICK_DISABLED 15758/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */59#define SDL_HAPTIC_DISABLED 16061/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */62#define SDL_LOADSO_DISABLED 16364/* Enable the stub thread support (src/thread/generic/\*.c) */65#define SDL_THREADS_DISABLED 16667/* Enable the stub timer support (src/timer/dummy/\*.c) */68#define SDL_TIMERS_DISABLED 16970/* Enable the dummy video driver (src/video/dummy/\*.c) */71#define SDL_VIDEO_DRIVER_DUMMY 17273#endif /* _SDL_config_minimal_h */747576