Fixed so code will compile with SDL_config_minimal.h

This commit is contained in:
Sam Lantinga 2011-03-12 13:21:57 -08:00
parent 2bfebc895c
commit fc9ee0c10f
15 changed files with 62 additions and 7 deletions

View file

@ -31,19 +31,27 @@
* This is the minimal configuration that can be used to build SDL.
*/
#include <stddef.h>
#include <stdarg.h>
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
typedef unsigned int size_t;
typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed short int16_t;
typedef unsigned short uint16_t;
typedef signed int int32_t;
typedef unsigned int uint32_t;
typedef unsigned int size_t;
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
typedef unsigned long uintptr_t;
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
#define SDL_HAS_64BIT_TYPE
#ifdef __GNUC__
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
#endif
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
#define SDL_AUDIO_DRIVER_DUMMY 1