include/SDL_config.h
changeset 1600 77bc91c8c16b
parent 1599 ecba4bbaf9c2
child 1603 64710b9f3eeb
     1.1 --- a/include/SDL_config.h	Thu Mar 23 08:43:37 2006 +0000
     1.2 +++ b/include/SDL_config.h	Thu Mar 23 15:22:40 2006 +0000
     1.3 @@ -1,4 +1,3 @@
     1.4 -/* include/SDL_config.h.  Generated by configure.  */
     1.5  /*
     1.6      SDL - Simple DirectMedia Layer
     1.7      Copyright (C) 1997-2006 Sam Lantinga
     1.8 @@ -24,280 +23,56 @@
     1.9  #ifndef _SDL_config_h
    1.10  #define _SDL_config_h
    1.11  
    1.12 -/* This is a set of defines to configure the SDL features */
    1.13 -
    1.14 -/* General platform specific identifiers */
    1.15  #include "SDL_platform.h"
    1.16  
    1.17 -/* C language features */
    1.18 -/* #undef const */
    1.19 -/* #undef inline */
    1.20 -/* #undef volatile */
    1.21 +/* Add any platform that doesn't build using the configure system */
    1.22 +#if defined(__AMIGA__)
    1.23 +#include "SDL_config_amiga.h"
    1.24 +#elif defined(__DREAMCAST__)
    1.25 +#include "SDL_config_dreamcast.h"
    1.26 +#elif defined(__MACOS__)
    1.27 +#include "SDL_config_macos.h"
    1.28 +#elif defined(__MACOSX__)
    1.29 +#include "SDL_config_macosx.h"
    1.30 +#elif defined(__WIN32__)
    1.31 +#include "SDL_config_win32.h"
    1.32 +#elif defined(__OS2__)
    1.33 +#include "SDL_config_os2.h"
    1.34 +#else
    1.35 +/* This is the minimal configuration that can be used to build SDL */
    1.36  
    1.37 -/* C datatypes */
    1.38 -/* #undef size_t */
    1.39 -/* #undef int8_t */
    1.40 -/* #undef uint8_t */
    1.41 -/* #undef int16_t */
    1.42 -/* #undef uint16_t */
    1.43 -/* #undef int32_t */
    1.44 -/* #undef uint32_t */
    1.45 -/* #undef int64_t */
    1.46 -/* #undef uint64_t */
    1.47 -/* #undef uintptr_t */
    1.48 -#define SDL_HAS_64BIT_TYPE 1
    1.49 +#include <stdarg.h>
    1.50  
    1.51 -/* Endianness */
    1.52 -#define SDL_BYTEORDER 1234
    1.53 +typedef signed char int8_t;
    1.54 +typedef unsigned char uint8_t;
    1.55 +typedef signed short int16_t;
    1.56 +typedef unsigned short uint16_t;
    1.57 +typedef signed int int32_t;
    1.58 +typedef unsigned int uint32_t;
    1.59 +typedef unsigned int size_t;
    1.60 +typedef unsigned long uintptr_t;
    1.61  
    1.62 -/* Comment this if you want to build without any C library requirements */
    1.63 -#define HAVE_LIBC 1
    1.64 -#if HAVE_LIBC
    1.65 +/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    1.66 +#define SDL_AUDIO_DRIVER_DUMMY	1
    1.67  
    1.68 -/* Useful headers */
    1.69 -#define HAVE_ALLOCA_H 1
    1.70 -#define HAVE_SYS_TYPES_H 1
    1.71 -#define HAVE_STDIO_H 1
    1.72 -#define STDC_HEADERS 1
    1.73 -#define HAVE_STDLIB_H 1
    1.74 -#define HAVE_STDARG_H 1
    1.75 -#define HAVE_MALLOC_H 1
    1.76 -#define HAVE_MEMORY_H 1
    1.77 -#define HAVE_STRING_H 1
    1.78 -#define HAVE_STRINGS_H 1
    1.79 -#define HAVE_INTTYPES_H 1
    1.80 -#define HAVE_STDINT_H 1
    1.81 -#define HAVE_CTYPE_H 1
    1.82 -#define HAVE_MATH_H 1
    1.83 -#define HAVE_ICONV_H 1
    1.84 -#define HAVE_SIGNAL_H 1
    1.85 -/* #undef HAVE_ALTIVEC_H */
    1.86 +/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
    1.87 +#define SDL_CDROM_DISABLED	1
    1.88  
    1.89 -/* C library functions */
    1.90 -#define HAVE_MALLOC 1
    1.91 -#define HAVE_CALLOC 1
    1.92 -#define HAVE_REALLOC 1
    1.93 -#define HAVE_FREE 1
    1.94 -#define HAVE_ALLOCA 1
    1.95 -#ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
    1.96 -#define HAVE_GETENV 1
    1.97 -#define HAVE_PUTENV 1
    1.98 -#define HAVE_UNSETENV 1
    1.99 -#endif
   1.100 -#define HAVE_QSORT 1
   1.101 -#define HAVE_ABS 1
   1.102 -#define HAVE_BCOPY 1
   1.103 -#define HAVE_MEMSET 1
   1.104 -#define HAVE_MEMCPY 1
   1.105 -#define HAVE_MEMMOVE 1
   1.106 -#define HAVE_MEMCMP 1
   1.107 -#define HAVE_STRLEN 1
   1.108 -/* #undef HAVE_STRLCPY */
   1.109 -/* #undef HAVE_STRLCAT */
   1.110 -#define HAVE_STRDUP 1
   1.111 -/* #undef HAVE__STRREV */
   1.112 -/* #undef HAVE__STRUPR */
   1.113 -/* #undef HAVE__STRLWR */
   1.114 -/* #undef HAVE_INDEX */
   1.115 -/* #undef HAVE_RINDEX */
   1.116 -#define HAVE_STRCHR 1
   1.117 -#define HAVE_STRRCHR 1
   1.118 -#define HAVE_STRSTR 1
   1.119 -/* #undef HAVE_ITOA */
   1.120 -/* #undef HAVE__LTOA */
   1.121 -/* #undef HAVE__UITOA */
   1.122 -/* #undef HAVE__ULTOA */
   1.123 -#define HAVE_STRTOL 1
   1.124 -#define HAVE_STRTOUL 1
   1.125 -/* #undef HAVE__I64TOA */
   1.126 -/* #undef HAVE__UI64TOA */
   1.127 -#define HAVE_STRTOLL 1
   1.128 -#define HAVE_STRTOULL 1
   1.129 -#define HAVE_STRTOD 1
   1.130 -#define HAVE_ATOI 1
   1.131 -#define HAVE_ATOF 1
   1.132 -#define HAVE_STRCMP 1
   1.133 -#define HAVE_STRNCMP 1
   1.134 -/* #undef HAVE__STRICMP */
   1.135 -#define HAVE_STRCASECMP 1
   1.136 -/* #undef HAVE__STRNICMP */
   1.137 -#define HAVE_STRNCASECMP 1
   1.138 -#define HAVE_SSCANF 1
   1.139 -#define HAVE_SNPRINTF 1
   1.140 -#define HAVE_VSNPRINTF 1
   1.141 -#define HAVE_ICONV 1
   1.142 -#define HAVE_SIGACTION 1
   1.143 -#define HAVE_SETJMP 1
   1.144 -#define HAVE_NANOSLEEP 1
   1.145 -/* #undef HAVE_CLOCK_GETTIME */
   1.146 -#define HAVE_DLVSYM 1
   1.147 +/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
   1.148 +#define SDL_JOYSTICK_DISABLED	1
   1.149  
   1.150 -#else
   1.151 -/* We may need some replacement for stdarg.h here */
   1.152 -#include <stdarg.h>
   1.153 -#endif /* HAVE_LIBC */
   1.154 +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
   1.155 +#define SDL_LOADSO_DISABLED	1
   1.156  
   1.157 -/* Allow disabling of core subsystems */
   1.158 -/* #undef SDL_AUDIO_DISABLED */
   1.159 -/* #undef SDL_CDROM_DISABLED */
   1.160 -/* #undef SDL_CPUINFO_DISABLED */
   1.161 -/* #undef SDL_EVENTS_DISABLED */
   1.162 -/* #undef SDL_FILE_DISABLED */
   1.163 -/* #undef SDL_JOYSTICK_DISABLED */
   1.164 -/* #undef SDL_LOADSO_DISABLED */
   1.165 -/* #undef SDL_THREADS_DISABLED */
   1.166 -/* #undef SDL_TIMERS_DISABLED */
   1.167 -/* #undef SDL_VIDEO_DISABLED */
   1.168 +/* Enable the stub thread support (src/thread/generic/\*.c) */
   1.169 +#define SDL_THREADS_DISABLED	1
   1.170  
   1.171 -/* Enable various audio drivers */
   1.172 -/* #undef SDL_AUDIO_DRIVER_AHI */
   1.173 -#define SDL_AUDIO_DRIVER_ALSA 1
   1.174 -#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "libasound.so.2"
   1.175 -/* #undef SDL_AUDIO_DRIVER_ARTS */
   1.176 -/* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
   1.177 -/* #undef SDL_AUDIO_DRIVER_BAUDIO */
   1.178 -/* #undef SDL_AUDIO_DRIVER_BSD */
   1.179 -/* #undef SDL_AUDIO_DRIVER_COREAUDIO */
   1.180 -/* #undef SDL_AUDIO_DRIVER_DART */
   1.181 -/* #undef SDL_AUDIO_DRIVER_DC */
   1.182 -#define SDL_AUDIO_DRIVER_DISK 1
   1.183 -#define SDL_AUDIO_DRIVER_DUMMY 1
   1.184 -/* #undef SDL_AUDIO_DRIVER_DMEDIA */
   1.185 -/* #undef SDL_AUDIO_DRIVER_DSOUND */
   1.186 -/* #undef SDL_AUDIO_DRIVER_ESD */
   1.187 -/* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
   1.188 -/* #undef SDL_AUDIO_DRIVER_MINT */
   1.189 -/* #undef SDL_AUDIO_DRIVER_MMEAUDIO */
   1.190 -/* #undef SDL_AUDIO_DRIVER_NAS */
   1.191 -#define SDL_AUDIO_DRIVER_OSS 1
   1.192 -/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
   1.193 -/* #undef SDL_AUDIO_DRIVER_PAUD */
   1.194 -/* #undef SDL_AUDIO_DRIVER_QNXNTO */
   1.195 -/* #undef SDL_AUDIO_DRIVER_SNDMGR */
   1.196 -/* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
   1.197 -/* #undef SDL_AUDIO_DRIVER_WAVEOUT */
   1.198 +/* Enable the stub timer support (src/timer/dummy/\*.c) */
   1.199 +#define SDL_TIMERS_DISABLED	1
   1.200  
   1.201 -/* Enable various cdrom drivers */
   1.202 -/* #undef SDL_CDROM_AIX */
   1.203 -/* #undef SDL_CDROM_BEOS */
   1.204 -/* #undef SDL_CDROM_BSDI */
   1.205 -/* #undef SDL_CDROM_DC */
   1.206 -/* #undef SDL_CDROM_DUMMY */
   1.207 -/* #undef SDL_CDROM_FREEBSD */
   1.208 -#define SDL_CDROM_LINUX 1
   1.209 -/* #undef SDL_CDROM_MACOS */
   1.210 -/* #undef SDL_CDROM_MACOSX */
   1.211 -/* #undef SDL_CDROM_MINT */
   1.212 -/* #undef SDL_CDROM_OPENBSD */
   1.213 -/* #undef SDL_CDROM_OS2 */
   1.214 -/* #undef SDL_CDROM_OSF */
   1.215 -/* #undef SDL_CDROM_QNX */
   1.216 -/* #undef SDL_CDROM_WIN32 */
   1.217 +/* Enable the dummy video driver (src/video/dummy/\*.c) */
   1.218 +#define SDL_VIDEO_DRIVER_DUMMY	1
   1.219  
   1.220 -/* Enable various input drivers */
   1.221 -/* #undef SDL_INPUT_TSLIB */
   1.222 -/* #undef SDL_JOYSTICK_AMIGA */
   1.223 -/* #undef SDL_JOYSTICK_BEOS */
   1.224 -/* #undef SDL_JOYSTICK_DC */
   1.225 -/* #undef SDL_JOYSTICK_DUMMY */
   1.226 -/* #undef SDL_JOYSTICK_IOKIT */
   1.227 -#define SDL_JOYSTICK_LINUX 1
   1.228 -/* #undef SDL_JOYSTICK_LINUXEV */
   1.229 -/* #undef SDL_JOYSTICK_MACOS */
   1.230 -/* #undef SDL_JOYSTICK_MINT */
   1.231 -/* #undef SDL_JOYSTICK_OS2 */
   1.232 -/* #undef SDL_JOYSTICK_RISCOS */
   1.233 -/* #undef SDL_JOYSTICK_WINMM */
   1.234 -/* #undef SDL_JOYSTICK_USBHID */
   1.235 -/* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
   1.236 -
   1.237 -/* Enable various shared object loading systems */
   1.238 -/* #undef SDL_LOADSO_BEOS */
   1.239 -/* #undef SDL_LOADSO_DLCOMPAT */
   1.240 -#define SDL_LOADSO_DLOPEN 1
   1.241 -/* #undef SDL_LOADSO_LDG */
   1.242 -/* #undef SDL_LOADSO_MACOS */
   1.243 -/* #undef SDL_LOADSO_OS2 */
   1.244 -/* #undef SDL_LOADSO_WIN32 */
   1.245 -
   1.246 -/* Enable various threading systems */
   1.247 -/* #undef SDL_THREAD_AMIGA */
   1.248 -/* #undef SDL_THREAD_BEOS */
   1.249 -/* #undef SDL_THREAD_DC */
   1.250 -/* #undef SDL_THREAD_EPOC */
   1.251 -/* #undef SDL_THREAD_OS2 */
   1.252 -/* #undef SDL_THREAD_PTH */
   1.253 -#define SDL_THREAD_PTHREAD 1
   1.254 -#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
   1.255 -/* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
   1.256 -/* #undef SDL_THREAD_SPROC */
   1.257 -/* #undef SDL_THREAD_WIN32 */
   1.258 -
   1.259 -/* Enable various timer systems */
   1.260 -/* #undef SDL_TIMER_AMIGA */
   1.261 -/* #undef SDL_TIMER_BEOS */
   1.262 -/* #undef SDL_TIMER_DC */
   1.263 -/* #undef SDL_TIMER_EPOC */
   1.264 -/* #undef SDL_TIMER_MACOS */
   1.265 -/* #undef SDL_TIMER_MINT */
   1.266 -/* #undef SDL_TIMER_OS2 */
   1.267 -/* #undef SDL_TIMER_RISCOS */
   1.268 -#define SDL_TIMER_UNIX 1
   1.269 -/* #undef SDL_TIMER_WIN32 */
   1.270 -/* #undef SDL_TIMER_WINCE */
   1.271 -
   1.272 -/* Enable various video drivers */
   1.273 -/* #undef SDL_VIDEO_DRIVER_AALIB */
   1.274 -/* #undef SDL_VIDEO_DRIVER_BWINDOW */
   1.275 -/* #undef SDL_VIDEO_DRIVER_CYBERGRAPHICS */
   1.276 -/* #undef SDL_VIDEO_DRIVER_DC */
   1.277 -/* #undef SDL_VIDEO_DRIVER_DDRAW */
   1.278 -#define SDL_VIDEO_DRIVER_DGA 1
   1.279 -/* #undef SDL_VIDEO_DRIVER_DIRECTFB */
   1.280 -/* #undef SDL_VIDEO_DRIVER_DRAWSPROCKET */
   1.281 -#define SDL_VIDEO_DRIVER_DUMMY 1
   1.282 -/* #undef SDL_VIDEO_DRIVER_EPOC */
   1.283 -#define SDL_VIDEO_DRIVER_FBCON 1
   1.284 -/* #undef SDL_VIDEO_DRIVER_GAPI */
   1.285 -/* #undef SDL_VIDEO_DRIVER_GEM */
   1.286 -/* #undef SDL_VIDEO_DRIVER_GGI */
   1.287 -/* #undef SDL_VIDEO_DRIVER_IPOD */
   1.288 -/* #undef SDL_VIDEO_DRIVER_NANOX */
   1.289 -/* #undef SDL_VIDEO_DRIVER_OS2FS */
   1.290 -/* #undef SDL_VIDEO_DRIVER_PHOTON */
   1.291 -/* #undef SDL_VIDEO_DRIVER_PICOGUI */
   1.292 -/* #undef SDL_VIDEO_DRIVER_PS2GS */
   1.293 -/* #undef SDL_VIDEO_DRIVER_QTOPIA */
   1.294 -/* #undef SDL_VIDEO_DRIVER_QUARTZ */
   1.295 -/* #undef SDL_VIDEO_DRIVER_RISCOS */
   1.296 -/* #undef SDL_VIDEO_DRIVER_SVGALIB */
   1.297 -/* #undef SDL_VIDEO_DRIVER_TOOLBOX */
   1.298 -/* #undef SDL_VIDEO_DRIVER_VGL */
   1.299 -/* #undef SDL_VIDEO_DRIVER_WINDIB */
   1.300 -/* #undef SDL_VIDEO_DRIVER_WSCONS */
   1.301 -#define SDL_VIDEO_DRIVER_X11 1
   1.302 -#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
   1.303 -#define SDL_VIDEO_DRIVER_X11_DYNAMIC "libX11.so.6"
   1.304 -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "libXext.so.6"
   1.305 -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "libXrandr.so.2"
   1.306 -#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "libXrender.so.1"
   1.307 -#define SDL_VIDEO_DRIVER_X11_VIDMODE 1
   1.308 -#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
   1.309 -#define SDL_VIDEO_DRIVER_X11_XME 1
   1.310 -#define SDL_VIDEO_DRIVER_X11_XRANDR 1
   1.311 -#define SDL_VIDEO_DRIVER_X11_XV 1
   1.312 -/* #undef SDL_VIDEO_DRIVER_XBIOS */
   1.313 -
   1.314 -/* Enable OpenGL support */
   1.315 -#define SDL_VIDEO_OPENGL 1
   1.316 -#define SDL_VIDEO_OPENGL_GLX 1
   1.317 -/* #undef SDL_VIDEO_OPENGL_WGL */
   1.318 -/* #undef SDL_VIDEO_OPENGL_OSMESA */
   1.319 -/* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
   1.320 -
   1.321 -/* Enable assembly routines */
   1.322 -#define SDL_ASSEMBLY_ROUTINES 1
   1.323 -/* #undef SDL_HERMES_BLITTERS */
   1.324 -/* #undef SDL_ALTIVEC_BLITTERS */
   1.325 +#endif /* platform config */
   1.326  
   1.327  #endif /* _SDL_config_h */