You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

83 rivejä
2.6 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #ifndef SDL_config_minimal_h_
  19. #define SDL_config_minimal_h_
  20. #define SDL_config_h_
  21. #include "SDL_platform.h"
  22. /**
  23. * \file SDL_config_minimal.h
  24. *
  25. * This is the minimal configuration that can be used to build SDL.
  26. */
  27. #define HAVE_STDARG_H 1
  28. #define HAVE_STDDEF_H 1
  29. /* Most everything except Visual Studio 2008 and earlier has stdint.h now */
  30. #if defined(_MSC_VER) && (_MSC_VER < 1600)
  31. /* Here are some reasonable defaults */
  32. typedef unsigned int size_t;
  33. typedef signed char int8_t;
  34. typedef unsigned char uint8_t;
  35. typedef signed short int16_t;
  36. typedef unsigned short uint16_t;
  37. typedef signed int int32_t;
  38. typedef unsigned int uint32_t;
  39. typedef signed long long int64_t;
  40. typedef unsigned long long uint64_t;
  41. typedef unsigned long uintptr_t;
  42. #else
  43. #define HAVE_STDINT_H 1
  44. #endif /* Visual Studio 2008 */
  45. #ifdef __GNUC__
  46. #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
  47. #endif
  48. /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
  49. #define SDL_AUDIO_DRIVER_DUMMY 1
  50. /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
  51. #define SDL_JOYSTICK_DISABLED 1
  52. /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
  53. #define SDL_HAPTIC_DISABLED 1
  54. /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
  55. #define SDL_LOADSO_DISABLED 1
  56. /* Enable the stub thread support (src/thread/generic/\*.c) */
  57. #define SDL_THREADS_DISABLED 1
  58. /* Enable the stub timer support (src/timer/dummy/\*.c) */
  59. #define SDL_TIMERS_DISABLED 1
  60. /* Enable the dummy video driver (src/video/dummy/\*.c) */
  61. #define SDL_VIDEO_DRIVER_DUMMY 1
  62. /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
  63. #define SDL_FILESYSTEM_DUMMY 1
  64. #endif /* SDL_config_minimal_h_ */