comparison include/SDL_config.h.in @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 1736c5e2173f
children 11134dc42da8
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
22 22
23 #ifndef _SDL_config_h 23 #ifndef _SDL_config_h
24 #define _SDL_config_h 24 #define _SDL_config_h
25 25
26 /* This is a set of defines to configure the SDL features */ 26 /* This is a set of defines to configure the SDL features */
27
28 /* General platform specific identifiers */
29 #include "SDL_platform.h"
27 30
28 /* C language features */ 31 /* C language features */
29 #undef const 32 #undef const
30 #undef inline 33 #undef inline
31 #undef volatile 34 #undef volatile
46 /* Endianness */ 49 /* Endianness */
47 #undef SDL_BYTEORDER 50 #undef SDL_BYTEORDER
48 51
49 /* Comment this if you want to build without any C library requirements */ 52 /* Comment this if you want to build without any C library requirements */
50 #undef HAVE_LIBC 53 #undef HAVE_LIBC
51 #ifdef HAVE_LIBC 54 #if HAVE_LIBC
52 55
53 /* Useful headers */ 56 /* Useful headers */
54 #undef HAVE_ALLOCA_H 57 #undef HAVE_ALLOCA_H
55 #undef HAVE_SYS_TYPES_H 58 #undef HAVE_SYS_TYPES_H
56 #undef HAVE_STDIO_H 59 #undef HAVE_STDIO_H
125 #else 128 #else
126 /* We may need some replacement for stdarg.h here */ 129 /* We may need some replacement for stdarg.h here */
127 #include <stdarg.h> 130 #include <stdarg.h>
128 #endif /* HAVE_LIBC */ 131 #endif /* HAVE_LIBC */
129 132
130 /* General platform specific identifiers */
131 #undef TARGET_API_MAC_CARBON
132 #undef TARGET_API_MAC_OSX
133
134 /* Allow disabling of core subsystems */ 133 /* Allow disabling of core subsystems */
135 #undef SDL_AUDIO_DISABLED 134 #undef SDL_AUDIO_DISABLED
136 #undef SDL_CDROM_DISABLED 135 #undef SDL_CDROM_DISABLED
137 #undef SDL_CPUINFO_DISABLED 136 #undef SDL_CPUINFO_DISABLED
138 #undef SDL_EVENTS_DISABLED 137 #undef SDL_EVENTS_DISABLED
153 #undef SDL_AUDIO_DRIVER_COREAUDIO 152 #undef SDL_AUDIO_DRIVER_COREAUDIO
154 #undef SDL_AUDIO_DRIVER_DART 153 #undef SDL_AUDIO_DRIVER_DART
155 #undef SDL_AUDIO_DRIVER_DC 154 #undef SDL_AUDIO_DRIVER_DC
156 #undef SDL_AUDIO_DRIVER_DISK 155 #undef SDL_AUDIO_DRIVER_DISK
157 #undef SDL_AUDIO_DRIVER_DMEDIA 156 #undef SDL_AUDIO_DRIVER_DMEDIA
158 #undef SDL_AUDIO_DRIVER_DRENDERER
159 #undef SDL_AUDIO_DRIVER_DSOUND 157 #undef SDL_AUDIO_DRIVER_DSOUND
160 #undef SDL_AUDIO_DRIVER_ESD 158 #undef SDL_AUDIO_DRIVER_ESD
161 #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC 159 #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
162 #undef SDL_AUDIO_DRIVER_MINT 160 #undef SDL_AUDIO_DRIVER_MINT
163 #undef SDL_AUDIO_DRIVER_MMEAUDIO 161 #undef SDL_AUDIO_DRIVER_MMEAUDIO
283 #undef SDL_VIDEO_OPENGL_GLX 281 #undef SDL_VIDEO_OPENGL_GLX
284 #undef SDL_VIDEO_OPENGL_WGL 282 #undef SDL_VIDEO_OPENGL_WGL
285 #undef SDL_VIDEO_OPENGL_OSMESA 283 #undef SDL_VIDEO_OPENGL_OSMESA
286 #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 284 #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
287 285
288 /* Enable assembly blit routines */ 286 /* Enable assembly routines */
289 #undef SDL_ASSEMBLY_BLITTERS 287 #undef SDL_ASSEMBLY_ROUTINES
290 #undef SDL_HERMES_BLITTERS 288 #undef SDL_HERMES_BLITTERS
291 #undef SDL_ALTIVEC_BLITTERS 289 #undef SDL_ALTIVEC_BLITTERS
292 290
293 #endif /* _SDL_config_h */ 291 #endif /* _SDL_config_h */