SDL_config.h.in 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2014 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_h
  19. #define _SDL_config_h
  20. /**
  21. * \file SDL_config.h.in
  22. *
  23. * This is a set of defines to configure the SDL features
  24. */
  25. /* General platform specific identifiers */
  26. #include "SDL_platform.h"
  27. /* Make sure that this isn't included by Visual C++ */
  28. #ifdef _MSC_VER
  29. #error You should run hg revert SDL_config.h
  30. #endif
  31. /* C language features */
  32. #undef const
  33. #undef inline
  34. #undef volatile
  35. /* C datatypes */
  36. #ifdef __LP64__
  37. #define SIZEOF_VOIDP 8
  38. #else
  39. #define SIZEOF_VOIDP 4
  40. #endif
  41. #undef HAVE_GCC_ATOMICS
  42. #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET
  43. #undef HAVE_PTHREAD_SPINLOCK
  44. /* Comment this if you want to build without any C library requirements */
  45. #undef HAVE_LIBC
  46. #if HAVE_LIBC
  47. /* Useful headers */
  48. #undef HAVE_ALLOCA_H
  49. #undef HAVE_SYS_TYPES_H
  50. #undef HAVE_STDIO_H
  51. #undef STDC_HEADERS
  52. #undef HAVE_STDLIB_H
  53. #undef HAVE_STDARG_H
  54. #undef HAVE_MALLOC_H
  55. #undef HAVE_MEMORY_H
  56. #undef HAVE_STRING_H
  57. #undef HAVE_STRINGS_H
  58. #undef HAVE_INTTYPES_H
  59. #undef HAVE_STDINT_H
  60. #undef HAVE_CTYPE_H
  61. #undef HAVE_MATH_H
  62. #undef HAVE_ICONV_H
  63. #undef HAVE_SIGNAL_H
  64. #undef HAVE_ALTIVEC_H
  65. #undef HAVE_PTHREAD_NP_H
  66. #undef HAVE_LIBUDEV_H
  67. #undef HAVE_DBUS_DBUS_H
  68. /* C library functions */
  69. #undef HAVE_MALLOC
  70. #undef HAVE_CALLOC
  71. #undef HAVE_REALLOC
  72. #undef HAVE_FREE
  73. #undef HAVE_ALLOCA
  74. #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
  75. #undef HAVE_GETENV
  76. #undef HAVE_SETENV
  77. #undef HAVE_PUTENV
  78. #undef HAVE_UNSETENV
  79. #endif
  80. #undef HAVE_QSORT
  81. #undef HAVE_ABS
  82. #undef HAVE_BCOPY
  83. #undef HAVE_MEMSET
  84. #undef HAVE_MEMCPY
  85. #undef HAVE_MEMMOVE
  86. #undef HAVE_MEMCMP
  87. #undef HAVE_STRLEN
  88. #undef HAVE_STRLCPY
  89. #undef HAVE_STRLCAT
  90. #undef HAVE_STRDUP
  91. #undef HAVE__STRREV
  92. #undef HAVE__STRUPR
  93. #undef HAVE__STRLWR
  94. #undef HAVE_INDEX
  95. #undef HAVE_RINDEX
  96. #undef HAVE_STRCHR
  97. #undef HAVE_STRRCHR
  98. #undef HAVE_STRSTR
  99. #undef HAVE_ITOA
  100. #undef HAVE__LTOA
  101. #undef HAVE__UITOA
  102. #undef HAVE__ULTOA
  103. #undef HAVE_STRTOL
  104. #undef HAVE_STRTOUL
  105. #undef HAVE__I64TOA
  106. #undef HAVE__UI64TOA
  107. #undef HAVE_STRTOLL
  108. #undef HAVE_STRTOULL
  109. #undef HAVE_STRTOD
  110. #undef HAVE_ATOI
  111. #undef HAVE_ATOF
  112. #undef HAVE_STRCMP
  113. #undef HAVE_STRNCMP
  114. #undef HAVE__STRICMP
  115. #undef HAVE_STRCASECMP
  116. #undef HAVE__STRNICMP
  117. #undef HAVE_STRNCASECMP
  118. #undef HAVE_SSCANF
  119. #undef HAVE_VSSCANF
  120. #undef HAVE_SNPRINTF
  121. #undef HAVE_VSNPRINTF
  122. #undef HAVE_M_PI
  123. #undef HAVE_ATAN
  124. #undef HAVE_ATAN2
  125. #undef HAVE_ACOS
  126. #undef HAVE_ASIN
  127. #undef HAVE_CEIL
  128. #undef HAVE_COPYSIGN
  129. #undef HAVE_COS
  130. #undef HAVE_COSF
  131. #undef HAVE_FABS
  132. #undef HAVE_FLOOR
  133. #undef HAVE_LOG
  134. #undef HAVE_POW
  135. #undef HAVE_SCALBN
  136. #undef HAVE_SIN
  137. #undef HAVE_SINF
  138. #undef HAVE_SQRT
  139. #undef HAVE_FSEEKO
  140. #undef HAVE_FSEEKO64
  141. #undef HAVE_SIGACTION
  142. #undef HAVE_SA_SIGACTION
  143. #undef HAVE_SETJMP
  144. #undef HAVE_NANOSLEEP
  145. #undef HAVE_SYSCONF
  146. #undef HAVE_SYSCTLBYNAME
  147. #undef HAVE_CLOCK_GETTIME
  148. #undef HAVE_GETPAGESIZE
  149. #undef HAVE_MPROTECT
  150. #undef HAVE_ICONV
  151. #undef HAVE_PTHREAD_SETNAME_NP
  152. #undef HAVE_PTHREAD_SET_NAME_NP
  153. #undef HAVE_SEM_TIMEDWAIT
  154. #else
  155. #define HAVE_STDARG_H 1
  156. #define HAVE_STDDEF_H 1
  157. #define HAVE_STDINT_H 1
  158. #endif /* HAVE_LIBC */
  159. /* SDL internal assertion support */
  160. #undef SDL_DEFAULT_ASSERT_LEVEL
  161. /* Allow disabling of core subsystems */
  162. #undef SDL_ATOMIC_DISABLED
  163. #undef SDL_AUDIO_DISABLED
  164. #undef SDL_CPUINFO_DISABLED
  165. #undef SDL_EVENTS_DISABLED
  166. #undef SDL_FILE_DISABLED
  167. #undef SDL_JOYSTICK_DISABLED
  168. #undef SDL_HAPTIC_DISABLED
  169. #undef SDL_LOADSO_DISABLED
  170. #undef SDL_RENDER_DISABLED
  171. #undef SDL_THREADS_DISABLED
  172. #undef SDL_TIMERS_DISABLED
  173. #undef SDL_VIDEO_DISABLED
  174. #undef SDL_POWER_DISABLED
  175. #undef SDL_FILESYSTEM_DISABLED
  176. /* Enable various audio drivers */
  177. #undef SDL_AUDIO_DRIVER_ALSA
  178. #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
  179. #undef SDL_AUDIO_DRIVER_ARTS
  180. #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
  181. #undef SDL_AUDIO_DRIVER_PULSEAUDIO
  182. #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC
  183. #undef SDL_AUDIO_DRIVER_HAIKU
  184. #undef SDL_AUDIO_DRIVER_BSD
  185. #undef SDL_AUDIO_DRIVER_COREAUDIO
  186. #undef SDL_AUDIO_DRIVER_DISK
  187. #undef SDL_AUDIO_DRIVER_DUMMY
  188. #undef SDL_AUDIO_DRIVER_XAUDIO2
  189. #undef SDL_AUDIO_DRIVER_DSOUND
  190. #undef SDL_AUDIO_DRIVER_ESD
  191. #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
  192. #undef SDL_AUDIO_DRIVER_NAS
  193. #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC
  194. #undef SDL_AUDIO_DRIVER_SNDIO
  195. #undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC
  196. #undef SDL_AUDIO_DRIVER_OSS
  197. #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
  198. #undef SDL_AUDIO_DRIVER_PAUDIO
  199. #undef SDL_AUDIO_DRIVER_QSA
  200. #undef SDL_AUDIO_DRIVER_SUNAUDIO
  201. #undef SDL_AUDIO_DRIVER_WINMM
  202. #undef SDL_AUDIO_DRIVER_FUSIONSOUND
  203. #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC
  204. /* Enable various input drivers */
  205. #undef SDL_INPUT_LINUXEV
  206. #undef SDL_INPUT_LINUXKD
  207. #undef SDL_INPUT_TSLIB
  208. #undef SDL_JOYSTICK_HAIKU
  209. #undef SDL_JOYSTICK_DINPUT
  210. #undef SDL_JOYSTICK_DUMMY
  211. #undef SDL_JOYSTICK_IOKIT
  212. #undef SDL_JOYSTICK_LINUX
  213. #undef SDL_JOYSTICK_WINMM
  214. #undef SDL_JOYSTICK_USBHID
  215. #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
  216. #undef SDL_HAPTIC_DUMMY
  217. #undef SDL_HAPTIC_LINUX
  218. #undef SDL_HAPTIC_IOKIT
  219. #undef SDL_HAPTIC_DINPUT
  220. /* Enable various shared object loading systems */
  221. #undef SDL_LOADSO_HAIKU
  222. #undef SDL_LOADSO_DLOPEN
  223. #undef SDL_LOADSO_DUMMY
  224. #undef SDL_LOADSO_LDG
  225. #undef SDL_LOADSO_WINDOWS
  226. /* Enable various threading systems */
  227. #undef SDL_THREAD_PTHREAD
  228. #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
  229. #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
  230. #undef SDL_THREAD_WINDOWS
  231. /* Enable various timer systems */
  232. #undef SDL_TIMER_HAIKU
  233. #undef SDL_TIMER_DUMMY
  234. #undef SDL_TIMER_UNIX
  235. #undef SDL_TIMER_WINDOWS
  236. /* Enable various video drivers */
  237. #undef SDL_VIDEO_DRIVER_HAIKU
  238. #undef SDL_VIDEO_DRIVER_COCOA
  239. #undef SDL_VIDEO_DRIVER_DIRECTFB
  240. #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC
  241. #undef SDL_VIDEO_DRIVER_DUMMY
  242. #undef SDL_VIDEO_DRIVER_WINDOWS
  243. #undef SDL_VIDEO_DRIVER_WAYLAND
  244. #undef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
  245. #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC
  246. #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
  247. #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR
  248. #undef SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON
  249. #undef SDL_VIDEO_DRIVER_MIR
  250. #undef SDL_VIDEO_DRIVER_MIR_DYNAMIC
  251. #undef SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON
  252. #undef SDL_VIDEO_DRIVER_X11
  253. #undef SDL_VIDEO_DRIVER_RPI
  254. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC
  255. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
  256. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR
  257. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA
  258. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2
  259. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
  260. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
  261. #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE
  262. #undef SDL_VIDEO_DRIVER_X11_XCURSOR
  263. #undef SDL_VIDEO_DRIVER_X11_XINERAMA
  264. #undef SDL_VIDEO_DRIVER_X11_XINPUT2
  265. #undef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
  266. #undef SDL_VIDEO_DRIVER_X11_XRANDR
  267. #undef SDL_VIDEO_DRIVER_X11_XSCRNSAVER
  268. #undef SDL_VIDEO_DRIVER_X11_XSHAPE
  269. #undef SDL_VIDEO_DRIVER_X11_XVIDMODE
  270. #undef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
  271. #undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
  272. #undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY
  273. #undef SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
  274. #undef SDL_VIDEO_RENDER_D3D
  275. #undef SDL_VIDEO_RENDER_D3D11
  276. #undef SDL_VIDEO_RENDER_OGL
  277. #undef SDL_VIDEO_RENDER_OGL_ES
  278. #undef SDL_VIDEO_RENDER_OGL_ES2
  279. #undef SDL_VIDEO_RENDER_DIRECTFB
  280. /* Enable OpenGL support */
  281. #undef SDL_VIDEO_OPENGL
  282. #undef SDL_VIDEO_OPENGL_ES
  283. #undef SDL_VIDEO_OPENGL_ES2
  284. #undef SDL_VIDEO_OPENGL_BGL
  285. #undef SDL_VIDEO_OPENGL_CGL
  286. #undef SDL_VIDEO_OPENGL_EGL
  287. #undef SDL_VIDEO_OPENGL_GLX
  288. #undef SDL_VIDEO_OPENGL_WGL
  289. #undef SDL_VIDEO_OPENGL_OSMESA
  290. #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
  291. /* Enable system power support */
  292. #undef SDL_POWER_LINUX
  293. #undef SDL_POWER_WINDOWS
  294. #undef SDL_POWER_MACOSX
  295. #undef SDL_POWER_HAIKU
  296. #undef SDL_POWER_HARDWIRED
  297. /* Enable system filesystem support */
  298. #undef SDL_FILESYSTEM_HAIKU
  299. #undef SDL_FILESYSTEM_COCOA
  300. #undef SDL_FILESYSTEM_DUMMY
  301. #undef SDL_FILESYSTEM_UNIX
  302. #undef SDL_FILESYSTEM_WINDOWS
  303. /* Enable assembly routines */
  304. #undef SDL_ASSEMBLY_ROUTINES
  305. #undef SDL_ALTIVEC_BLITTERS
  306. #endif /* _SDL_config_h */