include/SDL_config.h
changeset 6101 4b88086910d3
parent 5853 bdfb7a2a86e1
child 6102 bf7254ec1bf9
     1.1 --- a/include/SDL_config.h	Sun Dec 04 21:45:34 2011 -0800
     1.2 +++ b/include/SDL_config.h	Mon Dec 05 07:41:20 2011 -0800
     1.3 @@ -1,3 +1,4 @@
     1.4 +/* include/SDL_config.h.  Generated from SDL_config.h.in by configure.  */
     1.5  /*
     1.6    Simple DirectMedia Layer
     1.7    Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
     1.8 @@ -22,27 +23,277 @@
     1.9  #ifndef _SDL_config_h
    1.10  #define _SDL_config_h
    1.11  
    1.12 +/**
    1.13 + *  \file SDL_config.h.in
    1.14 + *
    1.15 + *  This is a set of defines to configure the SDL features
    1.16 + */
    1.17 +
    1.18 +/* General platform specific identifiers */
    1.19  #include "SDL_platform.h"
    1.20  
    1.21 -/**
    1.22 - *  \file SDL_config.h
    1.23 - *
    1.24 - *  SDL_config.h for any platform that doesn't build using the configure system.
    1.25 - */
    1.26 - 
    1.27 -/* Add any platform that doesn't build using the configure system. */
    1.28 -#if defined(__WIN32__)
    1.29 -#include "SDL_config_windows.h"
    1.30 -#elif defined(__MACOSX__)
    1.31 -#include "SDL_config_macosx.h"
    1.32 -#elif defined(__IPHONEOS__) 
    1.33 -#include "SDL_config_iphoneos.h"
    1.34 -#elif defined(__ANDROID__)
    1.35 -#include "SDL_config_android.h"
    1.36 -#elif defined(__NINTENDODS__)
    1.37 -#include "SDL_config_nintendods.h"
    1.38 +/* Make sure that this isn't included by Visual C++ */
    1.39 +#ifdef _MSC_VER
    1.40 +#error You should run hg revert SDL_config.h 
    1.41 +#endif
    1.42 +
    1.43 +/* C language features */
    1.44 +/* #undef const */
    1.45 +/* #undef inline */
    1.46 +/* #undef volatile */
    1.47 +
    1.48 +/* C datatypes */
    1.49 +#define SIZEOF_VOIDP 8
    1.50 +#define HAVE_GCC_ATOMICS 1
    1.51 +/* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
    1.52 +/* #undef HAVE_PTHREAD_SPINLOCK */
    1.53 +
    1.54 +/* Comment this if you want to build without any C library requirements */
    1.55 +#define HAVE_LIBC 1
    1.56 +#if HAVE_LIBC
    1.57 +
    1.58 +/* Useful headers */
    1.59 +#define HAVE_ALLOCA_H 1
    1.60 +#define HAVE_SYS_TYPES_H 1
    1.61 +#define HAVE_STDIO_H 1
    1.62 +#define STDC_HEADERS 1
    1.63 +#define HAVE_STDLIB_H 1
    1.64 +#define HAVE_STDARG_H 1
    1.65 +/* #undef HAVE_MALLOC_H */
    1.66 +#define HAVE_MEMORY_H 1
    1.67 +#define HAVE_STRING_H 1
    1.68 +#define HAVE_STRINGS_H 1
    1.69 +#define HAVE_INTTYPES_H 1
    1.70 +#define HAVE_STDINT_H 1
    1.71 +#define HAVE_CTYPE_H 1
    1.72 +#define HAVE_MATH_H 1
    1.73 +#define HAVE_ICONV_H 1
    1.74 +#define HAVE_SIGNAL_H 1
    1.75 +/* #undef HAVE_ALTIVEC_H */
    1.76 +/* #undef HAVE_PTHREAD_NP_H */
    1.77 +
    1.78 +/* C library functions */
    1.79 +#define HAVE_MALLOC 1
    1.80 +#define HAVE_CALLOC 1
    1.81 +#define HAVE_REALLOC 1
    1.82 +#define HAVE_FREE 1
    1.83 +#define HAVE_ALLOCA 1
    1.84 +#ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
    1.85 +#define HAVE_GETENV 1
    1.86 +#define HAVE_SETENV 1
    1.87 +#define HAVE_PUTENV 1
    1.88 +#define HAVE_UNSETENV 1
    1.89 +#endif
    1.90 +#define HAVE_QSORT 1
    1.91 +#define HAVE_ABS 1
    1.92 +#define HAVE_BCOPY 1
    1.93 +#define HAVE_MEMSET 1
    1.94 +#define HAVE_MEMCPY 1
    1.95 +#define HAVE_MEMMOVE 1
    1.96 +#define HAVE_MEMCMP 1
    1.97 +#define HAVE_STRLEN 1
    1.98 +#define HAVE_STRLCPY 1
    1.99 +#define HAVE_STRLCAT 1
   1.100 +#define HAVE_STRDUP 1
   1.101 +/* #undef HAVE__STRREV */
   1.102 +/* #undef HAVE__STRUPR */
   1.103 +/* #undef HAVE__STRLWR */
   1.104 +/* #undef HAVE_INDEX */
   1.105 +/* #undef HAVE_RINDEX */
   1.106 +#define HAVE_STRCHR 1
   1.107 +#define HAVE_STRRCHR 1
   1.108 +#define HAVE_STRSTR 1
   1.109 +/* #undef HAVE_ITOA */
   1.110 +/* #undef HAVE__LTOA */
   1.111 +/* #undef HAVE__UITOA */
   1.112 +/* #undef HAVE__ULTOA */
   1.113 +#define HAVE_STRTOL 1
   1.114 +#define HAVE_STRTOUL 1
   1.115 +/* #undef HAVE__I64TOA */
   1.116 +/* #undef HAVE__UI64TOA */
   1.117 +#define HAVE_STRTOLL 1
   1.118 +#define HAVE_STRTOULL 1
   1.119 +#define HAVE_STRTOD 1
   1.120 +#define HAVE_ATOI 1
   1.121 +#define HAVE_ATOF 1
   1.122 +#define HAVE_STRCMP 1
   1.123 +#define HAVE_STRNCMP 1
   1.124 +/* #undef HAVE__STRICMP */
   1.125 +#define HAVE_STRCASECMP 1
   1.126 +/* #undef HAVE__STRNICMP */
   1.127 +#define HAVE_STRNCASECMP 1
   1.128 +#define HAVE_SSCANF 1
   1.129 +#define HAVE_SNPRINTF 1
   1.130 +#define HAVE_VSNPRINTF 1
   1.131 +#define HAVE_M_PI /**/
   1.132 +#define HAVE_ATAN 1
   1.133 +#define HAVE_ATAN2 1
   1.134 +#define HAVE_CEIL 1
   1.135 +#define HAVE_COPYSIGN 1
   1.136 +#define HAVE_COS 1
   1.137 +#define HAVE_COSF 1
   1.138 +#define HAVE_FABS 1
   1.139 +#define HAVE_FLOOR 1
   1.140 +#define HAVE_LOG 1
   1.141 +#define HAVE_POW 1
   1.142 +#define HAVE_SCALBN 1
   1.143 +#define HAVE_SIN 1
   1.144 +#define HAVE_SINF 1
   1.145 +#define HAVE_SQRT 1
   1.146 +#define HAVE_SIGACTION 1
   1.147 +#define HAVE_SA_SIGACTION 1
   1.148 +#define HAVE_SETJMP 1
   1.149 +#define HAVE_NANOSLEEP 1
   1.150 +#define HAVE_SYSCONF 1
   1.151 +#define HAVE_SYSCTLBYNAME 1
   1.152 +/* #undef HAVE_CLOCK_GETTIME */
   1.153 +/* #undef HAVE_GETPAGESIZE */
   1.154 +#define HAVE_MPROTECT 1
   1.155 +#define HAVE_ICONV 1
   1.156 +#define HAVE_PTHREAD_SETNAME_NP 1
   1.157 +/* #undef HAVE_PTHREAD_SET_NAME_NP */
   1.158 +
   1.159  #else
   1.160 -#include "SDL_config_minimal.h"
   1.161 -#endif /* platform config */
   1.162 +/* We may need some replacement for stdarg.h here */
   1.163 +#include <stdarg.h>
   1.164 +#endif /* HAVE_LIBC */
   1.165 +
   1.166 +/* SDL internal assertion support */
   1.167 +/* #undef SDL_DEFAULT_ASSERT_LEVEL */
   1.168 +
   1.169 +/* Allow disabling of core subsystems */
   1.170 +/* #undef SDL_ATOMIC_DISABLED */
   1.171 +/* #undef SDL_AUDIO_DISABLED */
   1.172 +/* #undef SDL_CPUINFO_DISABLED */
   1.173 +/* #undef SDL_EVENTS_DISABLED */
   1.174 +/* #undef SDL_FILE_DISABLED */
   1.175 +/* #undef SDL_JOYSTICK_DISABLED */
   1.176 +/* #undef SDL_HAPTIC_DISABLED */
   1.177 +/* #undef SDL_LOADSO_DISABLED */
   1.178 +/* #undef SDL_RENDER_DISABLED */
   1.179 +/* #undef SDL_THREADS_DISABLED */
   1.180 +/* #undef SDL_TIMERS_DISABLED */
   1.181 +/* #undef SDL_VIDEO_DISABLED */
   1.182 +/* #undef SDL_POWER_DISABLED */
   1.183 +
   1.184 +/* Enable various audio drivers */
   1.185 +/* #undef SDL_AUDIO_DRIVER_ALSA */
   1.186 +/* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */
   1.187 +/* #undef SDL_AUDIO_DRIVER_ARTS */
   1.188 +/* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
   1.189 +/* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */
   1.190 +/* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
   1.191 +/* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */
   1.192 +/* #undef SDL_AUDIO_DRIVER_BSD */
   1.193 +#define SDL_AUDIO_DRIVER_COREAUDIO 1
   1.194 +#define SDL_AUDIO_DRIVER_DISK 1
   1.195 +#define SDL_AUDIO_DRIVER_DUMMY 1
   1.196 +/* #undef SDL_AUDIO_DRIVER_XAUDIO2 */
   1.197 +/* #undef SDL_AUDIO_DRIVER_DSOUND */
   1.198 +/* #undef SDL_AUDIO_DRIVER_ESD */
   1.199 +/* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
   1.200 +/* #undef SDL_AUDIO_DRIVER_NAS */
   1.201 +/* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
   1.202 +/* #undef SDL_AUDIO_DRIVER_NDS */
   1.203 +/* #undef SDL_AUDIO_DRIVER_OSS */
   1.204 +/* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
   1.205 +/* #undef SDL_AUDIO_DRIVER_PAUDIO */
   1.206 +/* #undef SDL_AUDIO_DRIVER_QSA */
   1.207 +/* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
   1.208 +/* #undef SDL_AUDIO_DRIVER_WINMM */
   1.209 +/* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
   1.210 +/* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
   1.211 +
   1.212 +/* Enable various input drivers */
   1.213 +/* #undef SDL_INPUT_LINUXEV */
   1.214 +/* #undef SDL_INPUT_TSLIB */
   1.215 +/* #undef SDL_JOYSTICK_BEOS */
   1.216 +/* #undef SDL_JOYSTICK_DINPUT */
   1.217 +/* #undef SDL_JOYSTICK_DUMMY */
   1.218 +#define SDL_JOYSTICK_IOKIT 1
   1.219 +/* #undef SDL_JOYSTICK_LINUX */
   1.220 +/* #undef SDL_JOYSTICK_NDS */
   1.221 +/* #undef SDL_JOYSTICK_WINMM */
   1.222 +/* #undef SDL_JOYSTICK_USBHID */
   1.223 +/* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
   1.224 +/* #undef SDL_HAPTIC_DUMMY */
   1.225 +/* #undef SDL_HAPTIC_LINUX */
   1.226 +#define SDL_HAPTIC_IOKIT 1
   1.227 +/* #undef SDL_HAPTIC_DINPUT */
   1.228 +
   1.229 +/* Enable various shared object loading systems */
   1.230 +/* #undef SDL_LOADSO_BEOS */
   1.231 +#define SDL_LOADSO_DLOPEN 1
   1.232 +/* #undef SDL_LOADSO_DUMMY */
   1.233 +/* #undef SDL_LOADSO_LDG */
   1.234 +/* #undef SDL_LOADSO_WINDOWS */
   1.235 +
   1.236 +/* Enable various threading systems */
   1.237 +/* #undef SDL_THREAD_BEOS */
   1.238 +/* #undef SDL_THREAD_NDS */
   1.239 +#define SDL_THREAD_PTHREAD 1
   1.240 +#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
   1.241 +/* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
   1.242 +/* #undef SDL_THREAD_WINDOWS */
   1.243 +
   1.244 +/* Enable various timer systems */
   1.245 +/* #undef SDL_TIMER_BEOS */
   1.246 +/* #undef SDL_TIMER_DUMMY */
   1.247 +/* #undef SDL_TIMER_NDS */
   1.248 +#define SDL_TIMER_UNIX 1
   1.249 +/* #undef SDL_TIMER_WINDOWS */
   1.250 +/* #undef SDL_TIMER_WINCE */
   1.251 +
   1.252 +/* Enable various video drivers */
   1.253 +/* #undef SDL_VIDEO_DRIVER_BWINDOW */
   1.254 +#define SDL_VIDEO_DRIVER_COCOA 1
   1.255 +/* #undef SDL_VIDEO_DRIVER_DIRECTFB */
   1.256 +/* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
   1.257 +#define SDL_VIDEO_DRIVER_DUMMY 1
   1.258 +/* #undef SDL_VIDEO_DRIVER_NDS */
   1.259 +/* #undef SDL_VIDEO_DRIVER_WINDOWS */
   1.260 +#define SDL_VIDEO_DRIVER_X11 1
   1.261 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
   1.262 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
   1.263 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "/usr/X11R6/lib/libXcursor.1.dylib"
   1.264 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
   1.265 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "/usr/X11R6/lib/libXi.6.dylib"
   1.266 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
   1.267 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
   1.268 +#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
   1.269 +#define SDL_VIDEO_DRIVER_X11_XCURSOR 1
   1.270 +#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
   1.271 +#define SDL_VIDEO_DRIVER_X11_XINPUT 1
   1.272 +#define SDL_VIDEO_DRIVER_X11_XRANDR 1
   1.273 +#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
   1.274 +#define SDL_VIDEO_DRIVER_X11_XSHAPE 1
   1.275 +#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
   1.276 +
   1.277 +/* #undef SDL_VIDEO_RENDER_D3D */
   1.278 +#define SDL_VIDEO_RENDER_OGL 1
   1.279 +/* #undef SDL_VIDEO_RENDER_OGL_ES */
   1.280 +/* #undef SDL_VIDEO_RENDER_DIRECTFB */
   1.281 +
   1.282 +/* Enable OpenGL support */
   1.283 +#define SDL_VIDEO_OPENGL 1
   1.284 +/* #undef SDL_VIDEO_OPENGL_ES */
   1.285 +/* #undef SDL_VIDEO_OPENGL_BGL */
   1.286 +#define SDL_VIDEO_OPENGL_CGL 1
   1.287 +#define SDL_VIDEO_OPENGL_GLX 1
   1.288 +/* #undef SDL_VIDEO_OPENGL_WGL */
   1.289 +/* #undef SDL_VIDEO_OPENGL_OSMESA */
   1.290 +/* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
   1.291 +
   1.292 +/* Enable system power support */
   1.293 +/* #undef SDL_POWER_LINUX */
   1.294 +/* #undef SDL_POWER_WINDOWS */
   1.295 +#define SDL_POWER_MACOSX 1
   1.296 +/* #undef SDL_POWER_BEOS */
   1.297 +/* #undef SDL_POWER_NINTENDODS */
   1.298 +/* #undef SDL_POWER_HARDWIRED */
   1.299 +
   1.300 +/* Enable assembly routines */
   1.301 +#define SDL_ASSEMBLY_ROUTINES 1
   1.302 +/* #undef SDL_ALTIVEC_BLITTERS */
   1.303  
   1.304  #endif /* _SDL_config_h */