patch-include_SDL_config_h 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. --- SDL-1.2.14.orig/include/SDL_config.h 2009-10-19 13:51:07.000000000 +0200
  2. +++ SDL-1.2.14/include/SDL_config.h 2011-01-12 11:57:30.000000000 +0100
  3. @@ -1,3 +1,4 @@
  4. +/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
  5. /*
  6. SDL - Simple DirectMedia Layer
  7. Copyright (C) 1997-2009 Sam Lantinga
  8. @@ -23,23 +24,288 @@
  9. #ifndef _SDL_config_h
  10. #define _SDL_config_h
  11. +/* This is a set of defines to configure the SDL features */
  12. +
  13. +/* General platform specific identifiers */
  14. #include "SDL_platform.h"
  15. -/* Add any platform that doesn't build using the configure system */
  16. -#if defined(__DREAMCAST__)
  17. -#include "SDL_config_dreamcast.h"
  18. -#elif defined(__MACOS__)
  19. -#include "SDL_config_macos.h"
  20. -#elif defined(__MACOSX__)
  21. -#include "SDL_config_macosx.h"
  22. -#elif defined(__SYMBIAN32__)
  23. -#include "SDL_config_symbian.h" /* must be before win32! */
  24. -#elif defined(__WIN32__)
  25. -#include "SDL_config_win32.h"
  26. -#elif defined(__OS2__)
  27. -#include "SDL_config_os2.h"
  28. +/* Make sure that this isn't included by Visual C++ */
  29. +#ifdef _MSC_VER
  30. +#error You should copy include/SDL_config.h.default to include/SDL_config.h
  31. +#endif
  32. +
  33. +/* C language features */
  34. +/* #undef const */
  35. +/* #undef inline */
  36. +/* #undef volatile */
  37. +
  38. +/* C datatypes */
  39. +/* #undef size_t */
  40. +/* #undef int8_t */
  41. +/* #undef uint8_t */
  42. +/* #undef int16_t */
  43. +/* #undef uint16_t */
  44. +/* #undef int32_t */
  45. +/* #undef uint32_t */
  46. +/* #undef int64_t */
  47. +/* #undef uint64_t */
  48. +/* #undef uintptr_t */
  49. +#define SDL_HAS_64BIT_TYPE 1
  50. +
  51. +/* Endianness */
  52. +#define SDL_BYTEORDER 1234
  53. +
  54. +/* Comment this if you want to build without any C library requirements */
  55. +#define HAVE_LIBC 1
  56. +#if HAVE_LIBC
  57. +
  58. +/* Useful headers */
  59. +#define HAVE_ALLOCA_H 1
  60. +#define HAVE_SYS_TYPES_H 1
  61. +#define HAVE_STDIO_H 1
  62. +#define STDC_HEADERS 1
  63. +#define HAVE_STDLIB_H 1
  64. +#define HAVE_STDARG_H 1
  65. +#define HAVE_MALLOC_H 1
  66. +#define HAVE_MEMORY_H 1
  67. +#define HAVE_STRING_H 1
  68. +#define HAVE_STRINGS_H 1
  69. +#define HAVE_INTTYPES_H 1
  70. +#define HAVE_STDINT_H 1
  71. +#define HAVE_CTYPE_H 1
  72. +#define HAVE_MATH_H 1
  73. +#define HAVE_ICONV_H 1
  74. +#define HAVE_SIGNAL_H 1
  75. +/* #undef HAVE_ALTIVEC_H */
  76. +
  77. +/* C library functions */
  78. +#define HAVE_MALLOC 1
  79. +#define HAVE_CALLOC 1
  80. +#define HAVE_REALLOC 1
  81. +#define HAVE_FREE 1
  82. +#define HAVE_ALLOCA 1
  83. +#ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
  84. +#define HAVE_GETENV 1
  85. +#define HAVE_PUTENV 1
  86. +#define HAVE_UNSETENV 1
  87. +#endif
  88. +#define HAVE_QSORT 1
  89. +#define HAVE_ABS 1
  90. +#define HAVE_BCOPY 1
  91. +#define HAVE_MEMSET 1
  92. +#define HAVE_MEMCPY 1
  93. +#define HAVE_MEMMOVE 1
  94. +/* #undef HAVE_MEMCMP */
  95. +#define HAVE_STRLEN 1
  96. +#define HAVE_STRLCPY 1
  97. +#define HAVE_STRLCAT 1
  98. +#define HAVE_STRDUP 1
  99. +/* #undef HAVE__STRREV */
  100. +/* #undef HAVE__STRUPR */
  101. +/* #undef HAVE__STRLWR */
  102. +/* #undef HAVE_INDEX */
  103. +/* #undef HAVE_RINDEX */
  104. +#define HAVE_STRCHR 1
  105. +#define HAVE_STRRCHR 1
  106. +#define HAVE_STRSTR 1
  107. +/* #undef HAVE_ITOA */
  108. +/* #undef HAVE__LTOA */
  109. +/* #undef HAVE__UITOA */
  110. +/* #undef HAVE__ULTOA */
  111. +#define HAVE_STRTOL 1
  112. +#define HAVE_STRTOUL 1
  113. +/* #undef HAVE__I64TOA */
  114. +/* #undef HAVE__UI64TOA */
  115. +#define HAVE_STRTOLL 1
  116. +#define HAVE_STRTOULL 1
  117. +/* #undef HAVE_STRTOD */
  118. +#define HAVE_ATOI 1
  119. +#define HAVE_ATOF 1
  120. +#define HAVE_STRCMP 1
  121. +#define HAVE_STRNCMP 1
  122. +/* #undef HAVE__STRICMP */
  123. +#define HAVE_STRCASECMP 1
  124. +/* #undef HAVE__STRNICMP */
  125. +#define HAVE_STRNCASECMP 1
  126. +#define HAVE_SSCANF 1
  127. +#define HAVE_SNPRINTF 1
  128. +#define HAVE_VSNPRINTF 1
  129. +/* #undef HAVE_ICONV */
  130. +#define HAVE_SIGACTION 1
  131. +#define HAVE_SETJMP 1
  132. +#define HAVE_NANOSLEEP 1
  133. +/* #undef HAVE_CLOCK_GETTIME */
  134. +#define HAVE_GETPAGESIZE 1
  135. +#define HAVE_MPROTECT 1
  136. +
  137. #else
  138. -#include "SDL_config_minimal.h"
  139. -#endif /* platform config */
  140. +/* We may need some replacement for stdarg.h here */
  141. +#include <stdarg.h>
  142. +#endif /* HAVE_LIBC */
  143. +
  144. +/* Allow disabling of core subsystems */
  145. +/* #undef SDL_AUDIO_DISABLED */
  146. +/* #undef SDL_CDROM_DISABLED */
  147. +/* #undef SDL_CPUINFO_DISABLED */
  148. +/* #undef SDL_EVENTS_DISABLED */
  149. +/* #undef SDL_FILE_DISABLED */
  150. +/* #undef SDL_JOYSTICK_DISABLED */
  151. +/* #undef SDL_LOADSO_DISABLED */
  152. +/* #undef SDL_THREADS_DISABLED */
  153. +/* #undef SDL_TIMERS_DISABLED */
  154. +/* #undef SDL_VIDEO_DISABLED */
  155. +
  156. +/* Enable various audio drivers */
  157. +#define SDL_AUDIO_DRIVER_ALSA 1
  158. +#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "libasound.so.2"
  159. +/* #undef SDL_AUDIO_DRIVER_ARTS */
  160. +/* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
  161. +/* #undef SDL_AUDIO_DRIVER_BAUDIO */
  162. +/* #undef SDL_AUDIO_DRIVER_BSD */
  163. +/* #undef SDL_AUDIO_DRIVER_COREAUDIO */
  164. +/* #undef SDL_AUDIO_DRIVER_DART */
  165. +/* #undef SDL_AUDIO_DRIVER_DC */
  166. +#define SDL_AUDIO_DRIVER_DISK 1
  167. +#define SDL_AUDIO_DRIVER_DUMMY 1
  168. +/* #undef SDL_AUDIO_DRIVER_DMEDIA */
  169. +/* #undef SDL_AUDIO_DRIVER_DSOUND */
  170. +/* #undef SDL_AUDIO_DRIVER_PULSE */
  171. +/* #undef SDL_AUDIO_DRIVER_PULSE_DYNAMIC */
  172. +/* #undef SDL_AUDIO_DRIVER_ESD */
  173. +/* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
  174. +/* #undef SDL_AUDIO_DRIVER_MINT */
  175. +/* #undef SDL_AUDIO_DRIVER_MMEAUDIO */
  176. +/* #undef SDL_AUDIO_DRIVER_NAS */
  177. +/* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
  178. +/* #undef SDL_AUDIO_DRIVER_OSS */
  179. +/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
  180. +/* #undef SDL_AUDIO_DRIVER_PAUD */
  181. +/* #undef SDL_AUDIO_DRIVER_QNXNTO */
  182. +/* #undef SDL_AUDIO_DRIVER_SNDMGR */
  183. +/* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
  184. +/* #undef SDL_AUDIO_DRIVER_WAVEOUT */
  185. +
  186. +/* Enable various cdrom drivers */
  187. +/* #undef SDL_CDROM_AIX */
  188. +/* #undef SDL_CDROM_BEOS */
  189. +/* #undef SDL_CDROM_BSDI */
  190. +/* #undef SDL_CDROM_DC */
  191. +/* #undef SDL_CDROM_DUMMY */
  192. +/* #undef SDL_CDROM_FREEBSD */
  193. +#define SDL_CDROM_LINUX 1
  194. +/* #undef SDL_CDROM_MACOS */
  195. +/* #undef SDL_CDROM_MACOSX */
  196. +/* #undef SDL_CDROM_MINT */
  197. +/* #undef SDL_CDROM_OPENBSD */
  198. +/* #undef SDL_CDROM_OS2 */
  199. +/* #undef SDL_CDROM_OSF */
  200. +/* #undef SDL_CDROM_QNX */
  201. +/* #undef SDL_CDROM_WIN32 */
  202. +
  203. +/* Enable various input drivers */
  204. +#define SDL_INPUT_LINUXEV 1
  205. +#define SDL_INPUT_TSLIB 1
  206. +/* #undef SDL_JOYSTICK_BEOS */
  207. +/* #undef SDL_JOYSTICK_DC */
  208. +/* #undef SDL_JOYSTICK_DUMMY */
  209. +/* #undef SDL_JOYSTICK_IOKIT */
  210. +#define SDL_JOYSTICK_LINUX 1
  211. +/* #undef SDL_JOYSTICK_MACOS */
  212. +/* #undef SDL_JOYSTICK_MINT */
  213. +/* #undef SDL_JOYSTICK_OS2 */
  214. +/* #undef SDL_JOYSTICK_RISCOS */
  215. +/* #undef SDL_JOYSTICK_WINMM */
  216. +/* #undef SDL_JOYSTICK_USBHID */
  217. +/* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
  218. +
  219. +/* Enable various shared object loading systems */
  220. +/* #undef SDL_LOADSO_BEOS */
  221. +/* #undef SDL_LOADSO_DLCOMPAT */
  222. +#define SDL_LOADSO_DLOPEN 1
  223. +/* #undef SDL_LOADSO_DUMMY */
  224. +/* #undef SDL_LOADSO_LDG */
  225. +/* #undef SDL_LOADSO_MACOS */
  226. +/* #undef SDL_LOADSO_OS2 */
  227. +/* #undef SDL_LOADSO_WIN32 */
  228. +
  229. +/* Enable various threading systems */
  230. +/* #undef SDL_THREAD_BEOS */
  231. +/* #undef SDL_THREAD_DC */
  232. +/* #undef SDL_THREAD_OS2 */
  233. +/* #undef SDL_THREAD_PTH */
  234. +#define SDL_THREAD_PTHREAD 1
  235. +#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
  236. +/* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
  237. +/* #undef SDL_THREAD_SPROC */
  238. +/* #undef SDL_THREAD_WIN32 */
  239. +
  240. +/* Enable various timer systems */
  241. +/* #undef SDL_TIMER_BEOS */
  242. +/* #undef SDL_TIMER_DC */
  243. +/* #undef SDL_TIMER_DUMMY */
  244. +/* #undef SDL_TIMER_MACOS */
  245. +/* #undef SDL_TIMER_MINT */
  246. +/* #undef SDL_TIMER_OS2 */
  247. +/* #undef SDL_TIMER_RISCOS */
  248. +#define SDL_TIMER_UNIX 1
  249. +/* #undef SDL_TIMER_WIN32 */
  250. +/* #undef SDL_TIMER_WINCE */
  251. +
  252. +/* Enable various video drivers */
  253. +/* #undef SDL_VIDEO_DRIVER_AALIB */
  254. +/* #undef SDL_VIDEO_DRIVER_BWINDOW */
  255. +/* #undef SDL_VIDEO_DRIVER_CACA */
  256. +/* #undef SDL_VIDEO_DRIVER_DC */
  257. +/* #undef SDL_VIDEO_DRIVER_DDRAW */
  258. +#define SDL_VIDEO_DRIVER_DGA 1
  259. +/* #undef SDL_VIDEO_DRIVER_DIRECTFB */
  260. +/* #undef SDL_VIDEO_DRIVER_DRAWSPROCKET */
  261. +#define SDL_VIDEO_DRIVER_DUMMY 1
  262. +#define SDL_VIDEO_DRIVER_FBCON 1
  263. +/* #undef SDL_VIDEO_DRIVER_GAPI */
  264. +/* #undef SDL_VIDEO_DRIVER_GEM */
  265. +/* #undef SDL_VIDEO_DRIVER_GGI */
  266. +/* #undef SDL_VIDEO_DRIVER_IPOD */
  267. +/* #undef SDL_VIDEO_DRIVER_NANOX */
  268. +/* #undef SDL_VIDEO_DRIVER_OS2FS */
  269. +/* #undef SDL_VIDEO_DRIVER_PHOTON */
  270. +/* #undef SDL_VIDEO_DRIVER_PICOGUI */
  271. +/* #undef SDL_VIDEO_DRIVER_PS2GS */
  272. +/* #undef SDL_VIDEO_DRIVER_PS3 */
  273. +/* #undef SDL_VIDEO_DRIVER_QTOPIA */
  274. +/* #undef SDL_VIDEO_DRIVER_QUARTZ */
  275. +/* #undef SDL_VIDEO_DRIVER_RISCOS */
  276. +/* #undef SDL_VIDEO_DRIVER_SVGALIB */
  277. +/* #undef SDL_VIDEO_DRIVER_TOOLBOX */
  278. +/* #undef SDL_VIDEO_DRIVER_VGL */
  279. +/* #undef SDL_VIDEO_DRIVER_WINDIB */
  280. +/* #undef SDL_VIDEO_DRIVER_WSCONS */
  281. +#define SDL_VIDEO_DRIVER_X11 1
  282. +#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
  283. +#define SDL_VIDEO_DRIVER_X11_DYNAMIC "libX11.so.6"
  284. +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "libXext.so.6"
  285. +/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR */
  286. +/* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER */
  287. +#define SDL_VIDEO_DRIVER_X11_VIDMODE 1
  288. +#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
  289. +#define SDL_VIDEO_DRIVER_X11_XME 1
  290. +/* #undef SDL_VIDEO_DRIVER_X11_XRANDR */
  291. +#define SDL_VIDEO_DRIVER_X11_XV 1
  292. +/* #undef SDL_VIDEO_DRIVER_XBIOS */
  293. +
  294. +/* Enable OpenGL support */
  295. +/* #undef SDL_VIDEO_OPENGL */
  296. +/* #undef SDL_VIDEO_OPENGL_GLX */
  297. +/* #undef SDL_VIDEO_OPENGL_WGL */
  298. +/* #undef SDL_VIDEO_OPENGL_OSMESA */
  299. +/* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
  300. +
  301. +/* Disable screensaver */
  302. +#define SDL_VIDEO_DISABLE_SCREENSAVER 1
  303. +
  304. +/* Enable assembly routines */
  305. +#define SDL_ASSEMBLY_ROUTINES 1
  306. +#define SDL_HERMES_BLITTERS 1
  307. +/* #undef SDL_ALTIVEC_BLITTERS */
  308. #endif /* _SDL_config_h */