zenilib: zenilib/jni/external/sdl/SDL/SDL_config_linux.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_config_linux.h
Go to the documentation of this file.
1 /* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
2 /*
3 Simple DirectMedia Layer
4 Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
5
6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages
8 arising from the use of this software.
9
10 Permission is granted to anyone to use this software for any purpose,
11 including commercial applications, and to alter it and redistribute it
12 freely, subject to the following restrictions:
13
14 1. The origin of this software must not be misrepresented; you must not
15 claim that you wrote the original software. If you use this software
16 in a product, an acknowledgment in the product documentation would be
17 appreciated but is not required.
18 2. Altered source versions must be plainly marked as such, and must not be
19 misrepresented as being the original software.
20 3. This notice may not be removed or altered from any source distribution.
21 */
22
23 #ifndef _SDL_config_linux_h
24 #define _SDL_config_linux_h
25
32 /* General platform specific identifiers */
33 #include "SDL_platform.h"
34
35 /* Make sure that this isn't included by Visual C++ */
36 #ifdef _MSC_VER
37 #error You should run hg revert SDL_config.h
38 #endif
39
40 /* C language features */
41 /* #undef const */
42 /* #undef inline */
43 /* #undef volatile */
44
45 /* C datatypes */
46 #ifdef __LP64__
47 #define SIZEOF_VOIDP 8
48 #else
49 #define SIZEOF_VOIDP 4
50 #endif
51 #define HAVE_GCC_ATOMICS 1
52 /* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
53 #define HAVE_PTHREAD_SPINLOCK 1
54
55 /* Comment this if you want to build without any C library requirements */
56 #define HAVE_LIBC 1
57 #if HAVE_LIBC
58
59 /* Useful headers */
60 #define HAVE_ALLOCA_H 1
61 #define HAVE_SYS_TYPES_H 1
62 #define HAVE_STDIO_H 1
63 #define STDC_HEADERS 1
64 #define HAVE_STDLIB_H 1
65 #define HAVE_STDARG_H 1
66 #define HAVE_MALLOC_H 1
67 #define HAVE_MEMORY_H 1
68 #define HAVE_STRING_H 1
69 #define HAVE_STRINGS_H 1
70 #define HAVE_INTTYPES_H 1
71 #define HAVE_STDINT_H 1
72 #define HAVE_CTYPE_H 1
73 #define HAVE_MATH_H 1
74 #define HAVE_ICONV_H 1
75 #define HAVE_SIGNAL_H 1
76 /* #undef HAVE_ALTIVEC_H */
77 /* #undef HAVE_PTHREAD_NP_H */
78 /* #undef HAVE_LIBUDEV_H */
79 /* #define HAVE_DBUS_DBUS_H 1 */
80
81 /* C library functions */
82 #define HAVE_MALLOC 1
83 #define HAVE_CALLOC 1
84 #define HAVE_REALLOC 1
85 #define HAVE_FREE 1
86 #define HAVE_ALLOCA 1
87 #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
88 #define HAVE_GETENV 1
89 #define HAVE_SETENV 1
90 #define HAVE_PUTENV 1
91 #define HAVE_UNSETENV 1
92 #endif
93 #define HAVE_QSORT 1
94 #define HAVE_ABS 1
95 #define HAVE_BCOPY 1
96 #define HAVE_MEMSET 1
97 #define HAVE_MEMCPY 1
98 #define HAVE_MEMMOVE 1
99 #define HAVE_MEMCMP 1
100 #define HAVE_STRLEN 1
101 /* #undef HAVE_STRLCPY */
102 /* #undef HAVE_STRLCAT */
103 #define HAVE_STRDUP 1
104 /* #undef HAVE__STRREV */
105 /* #undef HAVE__STRUPR */
106 /* #undef HAVE__STRLWR */
107 /* #undef HAVE_INDEX */
108 /* #undef HAVE_RINDEX */
109 #define HAVE_STRCHR 1
110 #define HAVE_STRRCHR 1
111 #define HAVE_STRSTR 1
112 /* #undef HAVE_ITOA */
113 /* #undef HAVE__LTOA */
114 /* #undef HAVE__UITOA */
115 /* #undef HAVE__ULTOA */
116 #define HAVE_STRTOL 1
117 #define HAVE_STRTOUL 1
118 /* #undef HAVE__I64TOA */
119 /* #undef HAVE__UI64TOA */
120 #define HAVE_STRTOLL 1
121 #define HAVE_STRTOULL 1
122 #define HAVE_STRTOD 1
123 #define HAVE_ATOI 1
124 #define HAVE_ATOF 1
125 #define HAVE_STRCMP 1
126 #define HAVE_STRNCMP 1
127 /* #undef HAVE__STRICMP */
128 #define HAVE_STRCASECMP 1
129 /* #undef HAVE__STRNICMP */
130 #define HAVE_STRNCASECMP 1
131 #define HAVE_SSCANF 1
132 #define HAVE_SNPRINTF 1
133 #define HAVE_VSNPRINTF 1
134 #define HAVE_M_PI
135 #define HAVE_ATAN 1
136 #define HAVE_ATAN2 1
137 #define HAVE_CEIL 1
138 #define HAVE_COPYSIGN 1
139 #define HAVE_COS 1
140 #define HAVE_COSF 1
141 #define HAVE_FABS 1
142 #define HAVE_FLOOR 1
143 #define HAVE_LOG 1
144 #define HAVE_POW 1
145 #define HAVE_SCALBN 1
146 #define HAVE_SIN 1
147 #define HAVE_SINF 1
148 #define HAVE_SQRT 1
149 #define HAVE_FSEEKO 1
150 #define HAVE_FSEEKO64 1
151 #define HAVE_SIGACTION 1
152 #define HAVE_SA_SIGACTION 1
153 #undef HAVE_SETJMP
154 #define HAVE_NANOSLEEP 1
155 #define HAVE_SYSCONF 1
156 /* #undef HAVE_SYSCTLBYNAME */
157 #define HAVE_CLOCK_GETTIME 1
158 /* #undef HAVE_GETPAGESIZE */
159 #define HAVE_MPROTECT 1
160 #define HAVE_ICONV 1
161 #undef HAVE_PTHREAD_SETNAME_NP
162 /* #undef HAVE_PTHREAD_SET_NAME_NP */
163 #define HAVE_SEM_TIMEDWAIT 1
164
165 #else
166 #define HAVE_STDARG_H 1
167 #define HAVE_STDDEF_H 1
168 #define HAVE_STDINT_H 1
169 #endif /* HAVE_LIBC */
170
171 /* SDL internal assertion support */
172 /* #undef SDL_DEFAULT_ASSERT_LEVEL */
173
174 /* Allow disabling of core subsystems */
175 /* #undef SDL_ATOMIC_DISABLED */
176 /* #undef SDL_AUDIO_DISABLED */
177 /* #undef SDL_CPUINFO_DISABLED */
178 /* #undef SDL_EVENTS_DISABLED */
179 /* #undef SDL_FILE_DISABLED */
180 /* #undef SDL_JOYSTICK_DISABLED */
181 /* #undef SDL_HAPTIC_DISABLED */
182 /* #undef SDL_LOADSO_DISABLED */
183 /* #undef SDL_RENDER_DISABLED */
184 /* #undef SDL_THREADS_DISABLED */
185 /* #undef SDL_TIMERS_DISABLED */
186 /* #undef SDL_VIDEO_DISABLED */
187 /* #undef SDL_POWER_DISABLED */
188
189 /* Enable various audio drivers */
190 /* #undef SDL_AUDIO_DRIVER_ALSA */
191 /* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */
192 /* #undef SDL_AUDIO_DRIVER_ARTS */
193 /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
194 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */
195 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
196 /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */
197 /* #undef SDL_AUDIO_DRIVER_BSD */
198 /* #undef SDL_AUDIO_DRIVER_COREAUDIO */
199 #define SDL_AUDIO_DRIVER_DISK 1
200 #define SDL_AUDIO_DRIVER_DUMMY 1
201 /* #undef SDL_AUDIO_DRIVER_XAUDIO2 */
202 /* #undef SDL_AUDIO_DRIVER_DSOUND */
203 /* #undef SDL_AUDIO_DRIVER_ESD */
204 /* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
205 /* #undef SDL_AUDIO_DRIVER_NAS */
206 /* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
207 /* #undef SDL_AUDIO_DRIVER_SNDIO */
208 /* #undef SDL_AUDIO_DRIVER_SNDIO_DYNAMIC */
209 /* #define SDL_AUDIO_DRIVER_OSS 1 */
210 /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
211 /* #undef SDL_AUDIO_DRIVER_PAUDIO */
212 /* #undef SDL_AUDIO_DRIVER_QSA */
213 /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
214 /* #undef SDL_AUDIO_DRIVER_WINMM */
215 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
216 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
217
218 /* Enable various input drivers */
219 #define SDL_INPUT_LINUXEV 1
220 /* #undef SDL_INPUT_TSLIB */
221 /* #undef SDL_JOYSTICK_BEOS */
222 /* #undef SDL_JOYSTICK_DINPUT */
223 /* #undef SDL_JOYSTICK_DUMMY */
224 /* #undef SDL_JOYSTICK_IOKIT */
225 #define SDL_JOYSTICK_LINUX 1
226 /* #undef SDL_JOYSTICK_WINMM */
227 /* #undef SDL_JOYSTICK_USBHID */
228 /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
229 /* #undef SDL_HAPTIC_DUMMY */
230 #define SDL_HAPTIC_LINUX 1
231 /* #undef SDL_HAPTIC_IOKIT */
232 /* #undef SDL_HAPTIC_DINPUT */
233
234 /* Enable various shared object loading systems */
235 /* #undef SDL_LOADSO_BEOS */
236 #define SDL_LOADSO_DLOPEN 1
237 /* #undef SDL_LOADSO_DUMMY */
238 /* #undef SDL_LOADSO_LDG */
239 /* #undef SDL_LOADSO_WINDOWS */
240
241 /* Enable various threading systems */
242 /* #undef SDL_THREAD_BEOS */
243 #define SDL_THREAD_PTHREAD 1
244 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
245 /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
246 /* #undef SDL_THREAD_WINDOWS */
247
248 /* Enable various timer systems */
249 /* #undef SDL_TIMER_BEOS */
250 /* #undef SDL_TIMER_DUMMY */
251 #define SDL_TIMER_UNIX 1
252 /* #undef SDL_TIMER_WINDOWS */
253
254 /* Enable various video drivers */
255 /* #undef SDL_VIDEO_DRIVER_BWINDOW */
256 /* #undef SDL_VIDEO_DRIVER_COCOA */
257 /* #undef SDL_VIDEO_DRIVER_DIRECTFB */
258 /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
259 #define SDL_VIDEO_DRIVER_DUMMY 1
260 /* #undef SDL_VIDEO_DRIVER_WINDOWS */
261 #define SDL_VIDEO_DRIVER_X11 1
262 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "libX11.so.6"
263 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "libXext.so.6"
264 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "libXcursor.so.1"
265 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "libXinerama.so.1"
266 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "libXi.so.6"
267 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "libXrandr.so.2"
268 /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS */
269 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "libXxf86vm.so.1"
270 #define SDL_VIDEO_DRIVER_X11_XCURSOR 1
271 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
272 #define SDL_VIDEO_DRIVER_X11_XINPUT2 1
273 #define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1
274 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
275 /* #undef SDL_VIDEO_DRIVER_X11_XSCRNSAVER */
276 #define SDL_VIDEO_DRIVER_X11_XSHAPE 1
277 #define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
278 /* #undef SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS */
279 #define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32 1
280 /* #undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY */
281 #define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1
282
283 /* #undef SDL_VIDEO_RENDER_D3D */
284 #define SDL_VIDEO_RENDER_OGL 1
285 /* #undef SDL_VIDEO_RENDER_OGL_ES */
286 /* #undef SDL_VIDEO_RENDER_OGL_ES2 */
287 /* #undef SDL_VIDEO_RENDER_DIRECTFB */
288
289 /* Enable OpenGL support */
290 #define SDL_VIDEO_OPENGL 1
291 /* #undef SDL_VIDEO_OPENGL_ES */
292 /* #undef SDL_VIDEO_OPENGL_BGL */
293 /* #undef SDL_VIDEO_OPENGL_CGL */
294 #define SDL_VIDEO_OPENGL_GLX 1
295 /* #undef SDL_VIDEO_OPENGL_WGL */
296 /* #undef SDL_VIDEO_OPENGL_OSMESA */
297 /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
298
299 /* Enable system power support */
300 #define SDL_POWER_LINUX 1
301 /* #undef SDL_POWER_WINDOWS */
302 /* #undef SDL_POWER_MACOSX */
303 /* #undef SDL_POWER_BEOS */
304 /* #undef SDL_POWER_HARDWIRED */
305
306 /* enable filesystem support */
307 #define SDL_FILESYSTEM_UNIX 1
308
309 /* Enable assembly routines */
310 #define SDL_ASSEMBLY_ROUTINES 1
311 /* #undef SDL_ALTIVEC_BLITTERS */
312
313
314
315 #ifndef _IOC_NRBITS
316 #define _IOC_NRBITS 8
317 #endif
318 #ifndef _IOC_TYPEBITS
319 #define _IOC_TYPEBITS 8
320 #endif
321 #ifndef _IOC_SIZEBITS
322 # define _IOC_SIZEBITS 14
323 #endif
324 #ifndef _IOC_DIRBITS
325 # define _IOC_DIRBITS 2
326 #endif
327
328 #ifndef _IOC_NRSHIFT
329 #define _IOC_NRSHIFT 0
330 #endif
331 #ifndef _IOC_TYPESHIFT
332 #define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
333 #endif
334 #ifndef _IOC_SIZESHIFT
335 #define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS)
336 #endif
337 #ifndef _IOC_DIRSHIFT
338 #define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS)
339 #endif
340
341 #ifndef _IOC
342 #define _IOC(dir,type,nr,size) \
343 (((dir) << _IOC_DIRSHIFT) | \
344 ((type) << _IOC_TYPESHIFT) | \
345 ((nr) << _IOC_NRSHIFT) | \
346 ((size) << _IOC_SIZESHIFT))
347 #endif
348 #ifndef _IOC_TYPECHECK
349 #define _IOC_TYPECHECK(t) (sizeof(t))
350 #endif
351
352 #ifndef _IOC_WRITE
353 #define _IOC_WRITE 1U
354 #endif
355 #ifndef _IOC_READ
356 #define _IOC_READ 2U
357 #endif
358
359 #ifndef _IOR
360 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
361 #endif
362
363 #ifndef _IOW
364 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
365 #endif
366
367 #define EVIOCGID _IOR('E', 0x02, struct input_devinfo)
368 #define EVIOCRMFF _IOW('E', 0x81, int)
369 #define SDL_X11_HAVE_UTF8 1
370 #define XK_Escape (0xFF1B)
371 #define XK_KP_Enter (0xFF8D)
372 #define XK_Return (0xFF0D)
373 #define XK_VoidSymbol (0xFFFFFF)
374
375 #endif /* _SDL_config_h */
SDL_platform.h