SDL_config.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. /* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
  2. /*
  3. SDL - Simple DirectMedia Layer
  4. Copyright (C) 1997-2009 Sam Lantinga
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. Sam Lantinga
  17. [email protected]
  18. */
  19. #ifndef _SDL_config_h
  20. #define _SDL_config_h
  21. /**
  22. * \file SDL_config.h.in
  23. *
  24. * This is a set of defines to configure the SDL features
  25. */
  26. /* General platform specific identifiers */
  27. #include "SDL_platform.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. /* C language features */
  33. /* #undef const */
  34. /* #undef inline */
  35. /* #undef volatile */
  36. /* C datatypes */
  37. #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
  38. /* #undef size_t */
  39. /* #undef int8_t */
  40. /* #undef uint8_t */
  41. /* #undef int16_t */
  42. /* #undef uint16_t */
  43. /* #undef int32_t */
  44. /* #undef uint32_t */
  45. /* #undef int64_t */
  46. /* #undef uint64_t */
  47. /* #undef uintptr_t */
  48. #endif /* !_STDINT_H_ && !HAVE_STDINT_H */
  49. #define SIZEOF_VOIDP 8
  50. #define SDL_HAS_64BIT_TYPE 1
  51. /* Comment this if you want to build without any C library requirements */
  52. #define HAVE_LIBC 1
  53. #if HAVE_LIBC
  54. /* Useful headers */
  55. #define HAVE_ALLOCA_H 1
  56. #define HAVE_SYS_TYPES_H 1
  57. #define HAVE_STDIO_H 1
  58. #define STDC_HEADERS 1
  59. #define HAVE_STDLIB_H 1
  60. #define HAVE_STDARG_H 1
  61. #define HAVE_MALLOC_H 1
  62. #define HAVE_MEMORY_H 1
  63. #define HAVE_STRING_H 1
  64. #define HAVE_STRINGS_H 1
  65. #define HAVE_INTTYPES_H 1
  66. #define HAVE_STDINT_H 1
  67. #define HAVE_CTYPE_H 1
  68. #define HAVE_MATH_H 1
  69. #define HAVE_ICONV_H 1
  70. #define HAVE_SIGNAL_H 1
  71. /* #undef HAVE_ALTIVEC_H */
  72. /* C library functions */
  73. #define HAVE_MALLOC 1
  74. #define HAVE_CALLOC 1
  75. #define HAVE_REALLOC 1
  76. #define HAVE_FREE 1
  77. #define HAVE_ALLOCA 1
  78. #ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
  79. #define HAVE_GETENV 1
  80. #define HAVE_SETENV 1
  81. #define HAVE_PUTENV 1
  82. #define HAVE_UNSETENV 1
  83. #endif
  84. #define HAVE_QSORT 1
  85. #define HAVE_ABS 1
  86. #define HAVE_BCOPY 1
  87. #define HAVE_MEMSET 1
  88. #define HAVE_MEMCPY 1
  89. #define HAVE_MEMMOVE 1
  90. #define HAVE_MEMCMP 1
  91. #define HAVE_STRLEN 1
  92. /* #undef HAVE_STRLCPY */
  93. /* #undef HAVE_STRLCAT */
  94. #define HAVE_STRDUP 1
  95. /* #undef HAVE__STRREV */
  96. /* #undef HAVE__STRUPR */
  97. /* #undef HAVE__STRLWR */
  98. /* #undef HAVE_INDEX */
  99. /* #undef HAVE_RINDEX */
  100. #define HAVE_STRCHR 1
  101. #define HAVE_STRRCHR 1
  102. #define HAVE_STRSTR 1
  103. /* #undef HAVE_ITOA */
  104. /* #undef HAVE__LTOA */
  105. /* #undef HAVE__UITOA */
  106. /* #undef HAVE__ULTOA */
  107. #define HAVE_STRTOL 1
  108. #define HAVE_STRTOUL 1
  109. /* #undef HAVE__I64TOA */
  110. /* #undef HAVE__UI64TOA */
  111. #define HAVE_STRTOLL 1
  112. #define HAVE_STRTOULL 1
  113. #define HAVE_STRTOD 1
  114. #define HAVE_ATOI 1
  115. #define HAVE_ATOF 1
  116. #define HAVE_STRCMP 1
  117. #define HAVE_STRNCMP 1
  118. /* #undef HAVE__STRICMP */
  119. #define HAVE_STRCASECMP 1
  120. /* #undef HAVE__STRNICMP */
  121. #define HAVE_STRNCASECMP 1
  122. #define HAVE_SSCANF 1
  123. #define HAVE_SNPRINTF 1
  124. #define HAVE_VSNPRINTF 1
  125. #define HAVE_M_PI /**/
  126. #define HAVE_ATAN 1
  127. #define HAVE_ATAN2 1
  128. #define HAVE_CEIL 1
  129. #define HAVE_COPYSIGN 1
  130. #define HAVE_COS 1
  131. #define HAVE_COSF 1
  132. #define HAVE_FABS 1
  133. #define HAVE_FLOOR 1
  134. #define HAVE_LOG 1
  135. #define HAVE_POW 1
  136. #define HAVE_SCALBN 1
  137. #define HAVE_SIN 1
  138. #define HAVE_SINF 1
  139. #define HAVE_SQRT 1
  140. #define HAVE_SIGACTION 1
  141. #define HAVE_SETJMP 1
  142. #define HAVE_NANOSLEEP 1
  143. #define HAVE_SYSCONF 1
  144. /* #undef HAVE_SYSCTLBYNAME */
  145. /* #undef HAVE_CLOCK_GETTIME */
  146. /* #undef HAVE_GETPAGESIZE */
  147. #define HAVE_MPROTECT 1
  148. #else
  149. /* We may need some replacement for stdarg.h here */
  150. #include <stdarg.h>
  151. #endif /* HAVE_LIBC */
  152. /* SDL internal assertion support */
  153. /* #undef SDL_DEFAULT_ASSERT_LEVEL */
  154. /* Allow disabling of core subsystems */
  155. /* #undef SDL_AUDIO_DISABLED */
  156. /* #undef SDL_CPUINFO_DISABLED */
  157. /* #undef SDL_EVENTS_DISABLED */
  158. /* #undef SDL_FILE_DISABLED */
  159. /* #undef SDL_JOYSTICK_DISABLED */
  160. /* #undef SDL_HAPTIC_DISABLED */
  161. /* #undef SDL_LOADSO_DISABLED */
  162. /* #undef SDL_THREADS_DISABLED */
  163. /* #undef SDL_TIMERS_DISABLED */
  164. /* #undef SDL_VIDEO_DISABLED */
  165. /* #undef SDL_POWER_DISABLED */
  166. /* Enable various audio drivers */
  167. #define SDL_AUDIO_DRIVER_ALSA 1
  168. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "libasound.so.2"
  169. /* #undef SDL_AUDIO_DRIVER_ARTS */
  170. /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
  171. #define SDL_AUDIO_DRIVER_PULSEAUDIO 1
  172. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "libpulse-simple.so.0"
  173. /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */
  174. /* #undef SDL_AUDIO_DRIVER_BSD */
  175. /* #undef SDL_AUDIO_DRIVER_COREAUDIO */
  176. #define SDL_AUDIO_DRIVER_DISK 1
  177. #define SDL_AUDIO_DRIVER_DUMMY 1
  178. /* #undef SDL_AUDIO_DRIVER_DMEDIA */
  179. /* #undef SDL_AUDIO_DRIVER_DSOUND */
  180. #define SDL_AUDIO_DRIVER_ESD 1
  181. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "libesd.so.0"
  182. /* #undef SDL_AUDIO_DRIVER_MMEAUDIO */
  183. #define SDL_AUDIO_DRIVER_NAS 1
  184. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "libaudio.so.2"
  185. /* #undef SDL_AUDIO_DRIVER_NDS */
  186. #define SDL_AUDIO_DRIVER_OSS 1
  187. /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
  188. /* #undef SDL_AUDIO_DRIVER_PAUDIO */
  189. /* #undef SDL_AUDIO_DRIVER_QSA */
  190. /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
  191. /* #undef SDL_AUDIO_DRIVER_WINWAVEOUT */
  192. /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
  193. /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
  194. /* Enable various input drivers */
  195. #define SDL_INPUT_LINUXEV 1
  196. /* #undef SDL_INPUT_TSLIB */
  197. /* #undef SDL_JOYSTICK_BEOS */
  198. /* #undef SDL_JOYSTICK_DINPUT */
  199. /* #undef SDL_JOYSTICK_DUMMY */
  200. /* #undef SDL_JOYSTICK_IOKIT */
  201. #define SDL_JOYSTICK_LINUX 1
  202. /* #undef SDL_JOYSTICK_NDS */
  203. /* #undef SDL_JOYSTICK_RISCOS */
  204. /* #undef SDL_JOYSTICK_WINMM */
  205. /* #undef SDL_JOYSTICK_USBHID */
  206. /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
  207. /* #undef SDL_HAPTIC_DUMMY */
  208. #define SDL_HAPTIC_LINUX 1
  209. /* #undef SDL_HAPTIC_IOKIT */
  210. /* #undef SDL_HAPTIC_DINPUT */
  211. /* Enable various shared object loading systems */
  212. /* #undef SDL_LOADSO_BEOS */
  213. /* #undef SDL_LOADSO_DLCOMPAT */
  214. #define SDL_LOADSO_DLOPEN 1
  215. /* #undef SDL_LOADSO_DUMMY */
  216. /* #undef SDL_LOADSO_LDG */
  217. /* #undef SDL_LOADSO_WIN32 */
  218. /* Enable various threading systems */
  219. /* #undef SDL_THREAD_BEOS */
  220. /* #undef SDL_THREAD_NDS */
  221. #define SDL_THREAD_PTHREAD 1
  222. #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
  223. /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
  224. /* #undef SDL_THREAD_SPROC */
  225. /* #undef SDL_THREAD_WIN32 */
  226. /* Enable various timer systems */
  227. /* #undef SDL_TIMER_BEOS */
  228. /* #undef SDL_TIMER_DUMMY */
  229. /* #undef SDL_TIMER_NDS */
  230. /* #undef SDL_TIMER_RISCOS */
  231. #define SDL_TIMER_UNIX 1
  232. /* #undef SDL_TIMER_WIN32 */
  233. /* #undef SDL_TIMER_WINCE */
  234. /* Enable various video drivers */
  235. /* #undef SDL_VIDEO_DRIVER_BWINDOW */
  236. /* #undef SDL_VIDEO_DRIVER_COCOA */
  237. /* #undef SDL_VIDEO_DRIVER_DIRECTFB */
  238. /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
  239. #define SDL_VIDEO_DRIVER_DUMMY 1
  240. /* #undef SDL_VIDEO_DRIVER_FBCON */
  241. /* #undef SDL_VIDEO_DRIVER_NDS */
  242. /* #undef SDL_VIDEO_DRIVER_PHOTON */
  243. /* #undef SDL_VIDEO_DRIVER_QNXGF */
  244. /* #undef SDL_VIDEO_DRIVER_PS3 */
  245. /* #undef SDL_VIDEO_DRIVER_RISCOS */
  246. /* #undef SDL_VIDEO_DRIVER_SVGALIB */
  247. /* #undef SDL_VIDEO_DRIVER_WIN32 */
  248. #define SDL_VIDEO_DRIVER_X11 1
  249. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "libX11.so.6"
  250. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "libXext.so.6"
  251. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "libXrandr.so.2"
  252. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "libXrender.so.1"
  253. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "libXi.so.6"
  254. /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS */
  255. /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XDAMAGE */
  256. /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES */
  257. #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
  258. #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
  259. #define SDL_VIDEO_DRIVER_X11_XRANDR 1
  260. #define SDL_VIDEO_DRIVER_X11_XINPUT 1
  261. /* #undef SDL_VIDEO_DRIVER_X11_SCRNSAVER */
  262. #define SDL_VIDEO_DRIVER_X11_XV 1
  263. #define SDL_VIDEO_DRIVER_X11_XRENDER 1
  264. /* #undef SDL_VIDEO_DRIVER_X11_XDAMAGE */
  265. /* #undef SDL_VIDEO_DRIVER_X11_XFIXES */
  266. #define SDL_VIDEO_DRIVER_X11_XSHAPE 1
  267. /* #undef SDL_VIDEO_RENDER_D3D */
  268. /* #undef SDL_VIDEO_RENDER_GDI */
  269. #define SDL_VIDEO_RENDER_OGL 1
  270. /* #undef SDL_VIDEO_RENDER_OGL_ES */
  271. #define SDL_VIDEO_RENDER_X11 1
  272. /* #undef SDL_VIDEO_RENDER_GAPI */
  273. /* #undef SDL_VIDEO_RENDER_DDRAW */
  274. /* Enable OpenGL support */
  275. #define SDL_VIDEO_OPENGL 1
  276. /* #undef SDL_VIDEO_OPENGL_ES */
  277. /* #undef SDL_VIDEO_OPENGL_BGL */
  278. /* #undef SDL_VIDEO_OPENGL_CGL */
  279. #define SDL_VIDEO_OPENGL_GLX 1
  280. /* #undef SDL_VIDEO_OPENGL_WGL */
  281. /* #undef SDL_VIDEO_OPENGL_OSMESA */
  282. /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
  283. /* Enable system power support */
  284. #define SDL_POWER_LINUX 1
  285. /* #undef SDL_POWER_WINDOWS */
  286. /* #undef SDL_POWER_MACOSX */
  287. /* #undef SDL_POWER_BEOS */
  288. /* #undef SDL_POWER_NINTENDODS */
  289. /* #undef SDL_POWER_HARDWIRED */
  290. /* Enable assembly routines */
  291. #define SDL_ASSEMBLY_ROUTINES 1
  292. /* #undef SDL_ALTIVEC_BLITTERS */
  293. #endif /* _SDL_config_h */