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