comparison include/SDL_config.h @ 1533:38c1eb6b0083

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