SDL_config_minimal.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. SDL - Simple DirectMedia Layer
  3. Copyright (C) 1997-2009 Sam Lantinga
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. Sam Lantinga
  16. slouken@libsdl.org
  17. */
  18. #ifndef _SDL_config_minimal_h
  19. #define _SDL_config_minimal_h
  20. #include "SDL_platform.h"
  21. /* This is the minimal configuration that can be used to build SDL */
  22. #include <stdarg.h>
  23. typedef signed char int8_t;
  24. typedef unsigned char uint8_t;
  25. typedef signed short int16_t;
  26. typedef unsigned short uint16_t;
  27. typedef signed int int32_t;
  28. typedef unsigned int uint32_t;
  29. typedef unsigned int size_t;
  30. typedef unsigned long uintptr_t;
  31. /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
  32. #define SDL_AUDIO_DRIVER_DUMMY 1
  33. /* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
  34. #define SDL_CDROM_DISABLED 1
  35. /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
  36. #define SDL_JOYSTICK_DISABLED 1
  37. /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
  38. #define SDL_LOADSO_DISABLED 1
  39. /* Enable the stub thread support (src/thread/generic/\*.c) */
  40. #define SDL_THREADS_DISABLED 1
  41. /* Enable the stub timer support (src/timer/dummy/\*.c) */
  42. #define SDL_TIMERS_DISABLED 1
  43. /* Enable the dummy video driver (src/video/dummy/\*.c) */
  44. #define SDL_VIDEO_DRIVER_DUMMY 1
  45. #endif /* _SDL_config_minimal_h */