SDL_config.h.cmake 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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. /* C language features */
  28. #cmakedefine const @HAVE_CONST@
  29. #cmakedefine inline @HAVE_INLINE@
  30. #cmakedefine volatile @HAVE_VOLATILE@
  31. /* C datatypes */
  32. /* Define SIZEOF_VOIDP for 64/32 architectures */
  33. #ifdef __LP64__
  34. #define SIZEOF_VOIDP 8
  35. #else
  36. #define SIZEOF_VOIDP 4
  37. #endif
  38. #cmakedefine HAVE_GCC_ATOMICS @HAVE_GCC_ATOMICS@
  39. #cmakedefine HAVE_GCC_SYNC_LOCK_TEST_AND_SET @HAVE_GCC_SYNC_LOCK_TEST_AND_SET@
  40. #cmakedefine HAVE_PTHREAD_SPINLOCK @HAVE_PTHREAD_SPINLOCK@
  41. /* Comment this if you want to build without any C library requirements */
  42. #cmakedefine HAVE_LIBC 1
  43. #if HAVE_LIBC
  44. /* Useful headers */
  45. #cmakedefine HAVE_ALLOCA_H 1
  46. #cmakedefine HAVE_SYS_TYPES_H 1
  47. #cmakedefine HAVE_STDIO_H 1
  48. #cmakedefine STDC_HEADERS 1
  49. #cmakedefine HAVE_STDLIB_H 1
  50. #cmakedefine HAVE_STDARG_H 1
  51. #cmakedefine HAVE_MALLOC_H 1
  52. #cmakedefine HAVE_MEMORY_H 1
  53. #cmakedefine HAVE_STRING_H 1
  54. #cmakedefine HAVE_STRINGS_H 1
  55. #cmakedefine HAVE_INTTYPES_H 1
  56. #cmakedefine HAVE_STDINT_H 1
  57. #cmakedefine HAVE_CTYPE_H 1
  58. #cmakedefine HAVE_MATH_H 1
  59. #cmakedefine HAVE_ICONV_H 1
  60. #cmakedefine HAVE_SIGNAL_H 1
  61. #cmakedefine HAVE_ALTIVEC_H 1
  62. #cmakedefine HAVE_PTHREAD_NP_H 1
  63. #cmakedefine HAVE_LIBUDEV_H 1
  64. #cmakedefine HAVE_DBUS_DBUS_H 1
  65. /* C library functions */
  66. #cmakedefine HAVE_MALLOC 1
  67. #cmakedefine HAVE_CALLOC 1
  68. #cmakedefine HAVE_REALLOC 1
  69. #cmakedefine HAVE_FREE 1
  70. #cmakedefine HAVE_ALLOCA 1
  71. #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
  72. #cmakedefine HAVE_GETENV 1
  73. #cmakedefine HAVE_SETENV 1
  74. #cmakedefine HAVE_PUTENV 1
  75. #cmakedefine HAVE_UNSETENV 1
  76. #endif
  77. #cmakedefine HAVE_QSORT 1
  78. #cmakedefine HAVE_ABS 1
  79. #cmakedefine HAVE_BCOPY 1
  80. #cmakedefine HAVE_MEMSET 1
  81. #cmakedefine HAVE_MEMCPY 1
  82. #cmakedefine HAVE_MEMMOVE 1
  83. #cmakedefine HAVE_MEMCMP 1
  84. #cmakedefine HAVE_STRLEN 1
  85. #cmakedefine HAVE_STRLCPY 1
  86. #cmakedefine HAVE_STRLCAT 1
  87. #cmakedefine HAVE_STRDUP 1
  88. #cmakedefine HAVE__STRREV 1
  89. #cmakedefine HAVE__STRUPR 1
  90. #cmakedefine HAVE__STRLWR 1
  91. #cmakedefine HAVE_INDEX 1
  92. #cmakedefine HAVE_RINDEX 1
  93. #cmakedefine HAVE_STRCHR 1
  94. #cmakedefine HAVE_STRRCHR 1
  95. #cmakedefine HAVE_STRSTR 1
  96. #cmakedefine HAVE_ITOA 1
  97. #cmakedefine HAVE__LTOA 1
  98. #cmakedefine HAVE__UITOA 1
  99. #cmakedefine HAVE__ULTOA 1
  100. #cmakedefine HAVE_STRTOL 1
  101. #cmakedefine HAVE_STRTOUL 1
  102. #cmakedefine HAVE__I64TOA 1
  103. #cmakedefine HAVE__UI64TOA 1
  104. #cmakedefine HAVE_STRTOLL 1
  105. #cmakedefine HAVE_STRTOULL 1
  106. #cmakedefine HAVE_STRTOD 1
  107. #cmakedefine HAVE_ATOI 1
  108. #cmakedefine HAVE_ATOF 1
  109. #cmakedefine HAVE_STRCMP 1
  110. #cmakedefine HAVE_STRNCMP 1
  111. #cmakedefine HAVE__STRICMP 1
  112. #cmakedefine HAVE_STRCASECMP 1
  113. #cmakedefine HAVE__STRNICMP 1
  114. #cmakedefine HAVE_STRNCASECMP 1
  115. #cmakedefine HAVE_VSSCANF 1
  116. #cmakedefine HAVE_VSNPRINTF 1
  117. #cmakedefine HAVE_M_PI 1
  118. #cmakedefine HAVE_ATAN 1
  119. #cmakedefine HAVE_ATAN2 1
  120. #cmakedefine HAVE_ACOS 1
  121. #cmakedefine HAVE_ASIN 1
  122. #cmakedefine HAVE_CEIL 1
  123. #cmakedefine HAVE_COPYSIGN 1
  124. #cmakedefine HAVE_COS 1
  125. #cmakedefine HAVE_COSF 1
  126. #cmakedefine HAVE_FABS 1
  127. #cmakedefine HAVE_FLOOR 1
  128. #cmakedefine HAVE_LOG 1
  129. #cmakedefine HAVE_POW 1
  130. #cmakedefine HAVE_SCALBN 1
  131. #cmakedefine HAVE_SIN 1
  132. #cmakedefine HAVE_SINF 1
  133. #cmakedefine HAVE_SQRT 1
  134. #cmakedefine HAVE_FSEEKO 1
  135. #cmakedefine HAVE_FSEEKO64 1
  136. #cmakedefine HAVE_SIGACTION 1
  137. #cmakedefine HAVE_SA_SIGACTION 1
  138. #cmakedefine HAVE_SETJMP 1
  139. #cmakedefine HAVE_NANOSLEEP 1
  140. #cmakedefine HAVE_SYSCONF 1
  141. #cmakedefine HAVE_SYSCTLBYNAME 1
  142. #cmakedefine HAVE_CLOCK_GETTIME 1
  143. #cmakedefine HAVE_GETPAGESIZE 1
  144. #cmakedefine HAVE_MPROTECT 1
  145. #cmakedefine HAVE_ICONV 1
  146. #cmakedefine HAVE_PTHREAD_SETNAME_NP 1
  147. #cmakedefine HAVE_PTHREAD_SET_NAME_NP 1
  148. #cmakedefine HAVE_SEM_TIMEDWAIT 1
  149. #elif __WIN32__
  150. #cmakedefine HAVE_STDARG_H 1
  151. #cmakedefine HAVE_STDDEF_H 1
  152. #else
  153. /* We may need some replacement for stdarg.h here */
  154. #include <stdarg.h>
  155. #endif /* HAVE_LIBC */
  156. /* SDL internal assertion support */
  157. #cmakedefine SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
  158. /* Allow disabling of core subsystems */
  159. #cmakedefine SDL_ATOMIC_DISABLED @SDL_ATOMIC_DISABLED@
  160. #cmakedefine SDL_AUDIO_DISABLED @SDL_AUDIO_DISABLED@
  161. #cmakedefine SDL_CPUINFO_DISABLED @SDL_CPUINFO_DISABLED@
  162. #cmakedefine SDL_EVENTS_DISABLED @SDL_EVENTS_DISABLED@
  163. #cmakedefine SDL_FILE_DISABLED @SDL_FILE_DISABLED@
  164. #cmakedefine SDL_JOYSTICK_DISABLED @SDL_JOYSTICK_DISABLED@
  165. #cmakedefine SDL_HAPTIC_DISABLED @SDL_HAPTIC_DISABLED@
  166. #cmakedefine SDL_LOADSO_DISABLED @SDL_LOADSO_DISABLED@
  167. #cmakedefine SDL_RENDER_DISABLED @SDL_RENDER_DISABLED@
  168. #cmakedefine SDL_THREADS_DISABLED @SDL_THREADS_DISABLED@
  169. #cmakedefine SDL_TIMERS_DISABLED @SDL_TIMERS_DISABLED@
  170. #cmakedefine SDL_VIDEO_DISABLED @SDL_VIDEO_DISABLED@
  171. #cmakedefine SDL_POWER_DISABLED @SDL_POWER_DISABLED@
  172. #cmakedefine SDL_FILESYSTEM_DISABLED @SDL_FILESYSTEM_DISABLED@
  173. /* Enable various audio drivers */
  174. #cmakedefine SDL_AUDIO_DRIVER_ALSA @SDL_AUDIO_DRIVER_ALSA@
  175. #cmakedefine SDL_AUDIO_DRIVER_ALSA_DYNAMIC @SDL_AUDIO_DRIVER_ALSA_DYNAMIC@
  176. #cmakedefine SDL_AUDIO_DRIVER_ARTS @SDL_AUDIO_DRIVER_ARTS@
  177. #cmakedefine SDL_AUDIO_DRIVER_ARTS_DYNAMIC @SDL_AUDIO_DRIVER_ARTS_DYNAMIC@
  178. #cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO @SDL_AUDIO_DRIVER_PULSEAUDIO@
  179. #cmakedefine SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC @SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC@
  180. #cmakedefine SDL_AUDIO_DRIVER_HAIKU @SDL_AUDIO_DRIVER_HAIKU@
  181. #cmakedefine SDL_AUDIO_DRIVER_BSD @SDL_AUDIO_DRIVER_BSD@
  182. #cmakedefine SDL_AUDIO_DRIVER_COREAUDIO @SDL_AUDIO_DRIVER_COREAUDIO@
  183. #cmakedefine SDL_AUDIO_DRIVER_DISK @SDL_AUDIO_DRIVER_DISK@
  184. #cmakedefine SDL_AUDIO_DRIVER_DUMMY @SDL_AUDIO_DRIVER_DUMMY@
  185. #cmakedefine SDL_AUDIO_DRIVER_XAUDIO2 @SDL_AUDIO_DRIVER_XAUDIO2@
  186. #cmakedefine SDL_AUDIO_DRIVER_DSOUND @SDL_AUDIO_DRIVER_DSOUND@
  187. #cmakedefine SDL_AUDIO_DRIVER_ESD @SDL_AUDIO_DRIVER_ESD@
  188. #cmakedefine SDL_AUDIO_DRIVER_ESD_DYNAMIC @SDL_AUDIO_DRIVER_ESD_DYNAMIC@
  189. #cmakedefine SDL_AUDIO_DRIVER_NAS @SDL_AUDIO_DRIVER_NAS@
  190. #cmakedefine SDL_AUDIO_DRIVER_NAS_DYNAMIC @SDL_AUDIO_DRIVER_NAS_DYNAMIC@
  191. #cmakedefine SDL_AUDIO_DRIVER_SNDIO @SDL_AUDIO_DRIVER_SNDIO@
  192. #cmakedefine SDL_AUDIO_DRIVER_SNDIO_DYNAMIC @SDL_AUDIO_DRIVER_SNDIO_DYNAMIC@
  193. #cmakedefine SDL_AUDIO_DRIVER_OSS @SDL_AUDIO_DRIVER_OSS@
  194. #cmakedefine SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H @SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H@
  195. #cmakedefine SDL_AUDIO_DRIVER_PAUDIO @SDL_AUDIO_DRIVER_PAUDIO@
  196. #cmakedefine SDL_AUDIO_DRIVER_QSA @SDL_AUDIO_DRIVER_QSA@
  197. #cmakedefine SDL_AUDIO_DRIVER_SUNAUDIO @SDL_AUDIO_DRIVER_SUNAUDIO@
  198. #cmakedefine SDL_AUDIO_DRIVER_WINMM @SDL_AUDIO_DRIVER_WINMM@
  199. #cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND @SDL_AUDIO_DRIVER_FUSIONSOUND@
  200. #cmakedefine SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC @SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC@
  201. /* Enable various input drivers */
  202. #cmakedefine SDL_INPUT_LINUXEV @SDL_INPUT_LINUXEV@
  203. #cmakedefine SDL_INPUT_LINUXKD @SDL_INPUT_LINUXKD@
  204. #cmakedefine SDL_INPUT_TSLIB @SDL_INPUT_TSLIB@
  205. #cmakedefine SDL_JOYSTICK_HAIKU @SDL_JOYSTICK_HAIKU@
  206. #cmakedefine SDL_JOYSTICK_DINPUT @SDL_JOYSTICK_DINPUT@
  207. #cmakedefine SDL_JOYSTICK_DUMMY @SDL_JOYSTICK_DUMMY@
  208. #cmakedefine SDL_JOYSTICK_IOKIT @SDL_JOYSTICK_IOKIT@
  209. #cmakedefine SDL_JOYSTICK_LINUX @SDL_JOYSTICK_LINUX@
  210. #cmakedefine SDL_JOYSTICK_WINMM @SDL_JOYSTICK_WINMM@
  211. #cmakedefine SDL_JOYSTICK_USBHID @SDL_JOYSTICK_USBHID@
  212. #cmakedefine SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H @SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H@
  213. #cmakedefine SDL_HAPTIC_DUMMY @SDL_HAPTIC_DUMMY@
  214. #cmakedefine SDL_HAPTIC_LINUX @SDL_HAPTIC_LINUX@
  215. #cmakedefine SDL_HAPTIC_IOKIT @SDL_HAPTIC_IOKIT@
  216. #cmakedefine SDL_HAPTIC_DINPUT @SDL_HAPTIC_DINPUT@
  217. /* Enable various shared object loading systems */
  218. #cmakedefine SDL_LOADSO_HAIKU @SDL_LOADSO_HAIKU@
  219. #cmakedefine SDL_LOADSO_DLOPEN @SDL_LOADSO_DLOPEN@
  220. #cmakedefine SDL_LOADSO_DUMMY @SDL_LOADSO_DUMMY@
  221. #cmakedefine SDL_LOADSO_LDG @SDL_LOADSO_LDG@
  222. #cmakedefine SDL_LOADSO_WINDOWS @SDL_LOADSO_WINDOWS@
  223. /* Enable various threading systems */
  224. #cmakedefine SDL_THREAD_PTHREAD @SDL_THREAD_PTHREAD@
  225. #cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX @SDL_THREAD_PTHREAD_RECURSIVE_MUTEX@
  226. #cmakedefine SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP @SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP@
  227. #cmakedefine SDL_THREAD_WINDOWS @SDL_THREAD_WINDOWS@
  228. /* Enable various timer systems */
  229. #cmakedefine SDL_TIMER_HAIKU @SDL_TIMER_HAIKU@
  230. #cmakedefine SDL_TIMER_DUMMY @SDL_TIMER_DUMMY@
  231. #cmakedefine SDL_TIMER_UNIX @SDL_TIMER_UNIX@
  232. #cmakedefine SDL_TIMER_WINDOWS @SDL_TIMER_WINDOWS@
  233. #cmakedefine SDL_TIMER_WINCE @SDL_TIMER_WINCE@
  234. /* Enable various video drivers */
  235. #cmakedefine SDL_VIDEO_DRIVER_HAIKU @SDL_VIDEO_DRIVER_HAIKU@
  236. #cmakedefine SDL_VIDEO_DRIVER_COCOA @SDL_VIDEO_DRIVER_COCOA@
  237. #cmakedefine SDL_VIDEO_DRIVER_DIRECTFB @SDL_VIDEO_DRIVER_DIRECTFB@
  238. #cmakedefine SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC @SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC@
  239. #cmakedefine SDL_VIDEO_DRIVER_DUMMY @SDL_VIDEO_DRIVER_DUMMY@
  240. #cmakedefine SDL_VIDEO_DRIVER_WINDOWS @SDL_VIDEO_DRIVER_WINDOWS@
  241. #cmakedefine SDL_VIDEO_DRIVER_WAYLAND @SDL_VIDEO_DRIVER_WAYLAND@
  242. #if 0
  243. /* !!! FIXME: in configure script version, missing here: */
  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. #endif
  250. #cmakedefine SDL_VIDEO_DRIVER_MIR @SDL_VIDEO_DRIVER_MIR@
  251. #cmakedefine SDL_VIDEO_DRIVER_MIR_DYNAMIC @SDL_VIDEO_DRIVER_MIR_DYNAMIC@
  252. #cmakedefine SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON @SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON@
  253. #cmakedefine SDL_VIDEO_DRIVER_X11 @SDL_VIDEO_DRIVER_X11@
  254. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC @SDL_VIDEO_DRIVER_X11_DYNAMIC@
  255. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT @SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT@
  256. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR@
  257. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA @SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA@
  258. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 @SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2@
  259. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR @SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR@
  260. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS @SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS@
  261. #cmakedefine SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE @SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE@
  262. #cmakedefine SDL_VIDEO_DRIVER_X11_XCURSOR @SDL_VIDEO_DRIVER_X11_XCURSOR@
  263. #cmakedefine SDL_VIDEO_DRIVER_X11_XINERAMA @SDL_VIDEO_DRIVER_X11_XINERAMA@
  264. #cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2 @SDL_VIDEO_DRIVER_X11_XINPUT2@
  265. #cmakedefine SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH @SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH@
  266. #cmakedefine SDL_VIDEO_DRIVER_X11_XRANDR @SDL_VIDEO_DRIVER_X11_XRANDR@
  267. #cmakedefine SDL_VIDEO_DRIVER_X11_XSCRNSAVER @SDL_VIDEO_DRIVER_X11_XSCRNSAVER@
  268. #cmakedefine SDL_VIDEO_DRIVER_X11_XSHAPE @SDL_VIDEO_DRIVER_X11_XSHAPE@
  269. #cmakedefine SDL_VIDEO_DRIVER_X11_XVIDMODE @SDL_VIDEO_DRIVER_X11_XVIDMODE@
  270. #cmakedefine SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS @SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS@
  271. #cmakedefine SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 @SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32@
  272. #cmakedefine SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY @SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY@
  273. #cmakedefine SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM @SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM@
  274. #cmakedefine SDL_VIDEO_RENDER_D3D @SDL_VIDEO_RENDER_D3D@
  275. #cmakedefine SDL_VIDEO_RENDER_D3D11 @SDL_VIDEO_RENDER_D3D11@
  276. #cmakedefine SDL_VIDEO_RENDER_OGL @SDL_VIDEO_RENDER_OGL@
  277. #cmakedefine SDL_VIDEO_RENDER_OGL_ES @SDL_VIDEO_RENDER_OGL_ES@
  278. #cmakedefine SDL_VIDEO_RENDER_OGL_ES2 @SDL_VIDEO_RENDER_OGL_ES2@
  279. #cmakedefine SDL_VIDEO_RENDER_DIRECTFB @SDL_VIDEO_RENDER_DIRECTFB@
  280. /* Enable OpenGL support */
  281. #cmakedefine SDL_VIDEO_OPENGL @SDL_VIDEO_OPENGL@
  282. #cmakedefine SDL_VIDEO_OPENGL_ES @SDL_VIDEO_OPENGL_ES@
  283. #cmakedefine SDL_VIDEO_OPENGL_ES2 @SDL_VIDEO_OPENGL_ES2@
  284. #cmakedefine SDL_VIDEO_OPENGL_BGL @SDL_VIDEO_OPENGL_BGL@
  285. #cmakedefine SDL_VIDEO_OPENGL_CGL @SDL_VIDEO_OPENGL_CGL@
  286. #cmakedefine SDL_VIDEO_OPENGL_GLX @SDL_VIDEO_OPENGL_GLX@
  287. #cmakedefine SDL_VIDEO_OPENGL_WGL @SDL_VIDEO_OPENGL_WGL@
  288. #cmakedefine SDL_VIDEO_OPENGL_EGL @SDL_VIDEO_OPENGL_EGL@
  289. #cmakedefine SDL_VIDEO_OPENGL_OSMESA @SDL_VIDEO_OPENGL_OSMESA@
  290. #cmakedefine SDL_VIDEO_OPENGL_OSMESA_DYNAMIC @SDL_VIDEO_OPENGL_OSMESA_DYNAMIC@
  291. /* Enable system power support */
  292. #cmakedefine SDL_POWER_LINUX @SDL_POWER_LINUX@
  293. #cmakedefine SDL_POWER_WINDOWS @SDL_POWER_WINDOWS@
  294. #cmakedefine SDL_POWER_MACOSX @SDL_POWER_MACOSX@
  295. #cmakedefine SDL_POWER_HAIKU @SDL_POWER_HAIKU@
  296. #cmakedefine SDL_POWER_HARDWIRED @SDL_POWER_HARDWIRED@
  297. /* Enable system filesystem support */
  298. #cmakedefine SDL_FILESYSTEM_HAIKU @SDL_FILESYSTEM_HAIKU@
  299. #cmakedefine SDL_FILESYSTEM_COCOA @SDL_FILESYSTEM_COCOA@
  300. #cmakedefine SDL_FILESYSTEM_DUMMY @SDL_FILESYSTEM_DUMMY@
  301. #cmakedefine SDL_FILESYSTEM_UNIX @SDL_FILESYSTEM_UNIX@
  302. #cmakedefine SDL_FILESYSTEM_WINDOWS @SDL_FILESYSTEM_WINDOWS@
  303. /* Enable assembly routines */
  304. #cmakedefine SDL_ASSEMBLY_ROUTINES @SDL_ASSEMBLY_ROUTINES@
  305. #cmakedefine SDL_ALTIVEC_BLITTERS @SDL_ALTIVEC_BLITTERS@
  306. /* Platform specific definitions */
  307. #if !defined(__WIN32__)
  308. # if !defined(_STDINT_H_) && !defined(_STDINT_H) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H)
  309. typedef unsigned int size_t;
  310. typedef signed char int8_t;
  311. typedef unsigned char uint8_t;
  312. typedef signed short int16_t;
  313. typedef unsigned short uint16_t;
  314. typedef signed int int32_t;
  315. typedef unsigned int uint32_t;
  316. typedef signed long long int64_t;
  317. typedef unsigned long long uint64_t;
  318. typedef unsigned long uintptr_t;
  319. # endif /* if (stdint.h isn't available) */
  320. #else /* __WIN32__ */
  321. # if !defined(_STDINT_H_) && !defined(HAVE_STDINT_H) && !defined(_HAVE_STDINT_H)
  322. # if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
  323. #define HAVE_STDINT_H 1
  324. # elif defined(_MSC_VER)
  325. typedef signed __int8 int8_t;
  326. typedef unsigned __int8 uint8_t;
  327. typedef signed __int16 int16_t;
  328. typedef unsigned __int16 uint16_t;
  329. typedef signed __int32 int32_t;
  330. typedef unsigned __int32 uint32_t;
  331. typedef signed __int64 int64_t;
  332. typedef unsigned __int64 uint64_t;
  333. # ifndef _UINTPTR_T_DEFINED
  334. # ifdef _WIN64
  335. typedef unsigned __int64 uintptr_t;
  336. # else
  337. typedef unsigned int uintptr_t;
  338. # endif
  339. #define _UINTPTR_T_DEFINED
  340. # endif
  341. /* Older Visual C++ headers don't have the Win64-compatible typedefs... */
  342. # if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
  343. #define DWORD_PTR DWORD
  344. # endif
  345. # if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
  346. #define LONG_PTR LONG
  347. # endif
  348. # else /* !__GNUC__ && !_MSC_VER */
  349. typedef signed char int8_t;
  350. typedef unsigned char uint8_t;
  351. typedef signed short int16_t;
  352. typedef unsigned short uint16_t;
  353. typedef signed int int32_t;
  354. typedef unsigned int uint32_t;
  355. typedef signed long long int64_t;
  356. typedef unsigned long long uint64_t;
  357. # ifndef _SIZE_T_DEFINED_
  358. #define _SIZE_T_DEFINED_
  359. typedef unsigned int size_t;
  360. # endif
  361. typedef unsigned int uintptr_t;
  362. # endif /* __GNUC__ || _MSC_VER */
  363. # endif /* !_STDINT_H_ && !HAVE_STDINT_H */
  364. #endif /* __WIN32__ */
  365. #endif /* _SDL_config_h */