| 1 | /* include/SDL_config.h. Generated from SDL_config.h.in by configure. */ |
| 2 | /* |
| 3 | SDL - Simple DirectMedia Layer |
| 4 | Copyright (C) 1997-2009 Sam Lantinga |
| 5 | |
| 6 | This library is free software; you can redistribute it and/or |
| 7 | modify it under the terms of the GNU Lesser General Public |
| 8 | License as published by the Free Software Foundation; either |
| 9 | version 2.1 of the License, or (at your option) any later version. |
| 10 | |
| 11 | This library is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | Lesser General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU Lesser General Public |
| 17 | License along with this library; if not, write to the Free Software |
| 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | |
| 20 | Sam Lantinga |
| 21 | slouken@libsdl.org |
| 22 | */ |
| 23 | |
| 24 | #ifndef _SDL_config_h |
| 25 | #define _SDL_config_h |
| 26 | |
| 27 | /** |
| 28 | * \file SDL_config.h.in |
| 29 | * |
| 30 | * This is a set of defines to configure the SDL features |
| 31 | */ |
| 32 | |
| 33 | /* General platform specific identifiers */ |
| 34 | #include "SDL_platform.h" |
| 35 | |
| 36 | /* Make sure that this isn't included by Visual C++ */ |
| 37 | #ifdef _MSC_VER |
| 38 | #error You should copy include/SDL_config.h.default to include/SDL_config.h |
| 39 | #endif |
| 40 | |
| 41 | /* C language features */ |
| 42 | /* #undef const */ |
| 43 | /* #undef inline */ |
| 44 | /* #undef volatile */ |
| 45 | |
| 46 | /* C datatypes */ |
| 47 | #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) |
| 48 | /* #undef size_t */ |
| 49 | /* #undef int8_t */ |
| 50 | /* #undef uint8_t */ |
| 51 | /* #undef int16_t */ |
| 52 | /* #undef uint16_t */ |
| 53 | /* #undef int32_t */ |
| 54 | /* #undef uint32_t */ |
| 55 | /* #undef int64_t */ |
| 56 | /* #undef uint64_t */ |
| 57 | /* #undef uintptr_t */ |
| 58 | #endif /* !_STDINT_H_ && !HAVE_STDINT_H */ |
| 59 | |
| 60 | #define SIZEOF_VOIDP 4 |
| 61 | #define SDL_HAS_64BIT_TYPE 1 |
| 62 | |
| 63 | /* Comment this if you want to build without any C library requirements */ |
| 64 | #define HAVE_LIBC 1 |
| 65 | #if HAVE_LIBC |
| 66 | |
| 67 | /* Useful headers */ |
| 68 | #define HAVE_ALLOCA_H 1 |
| 69 | #define HAVE_SYS_TYPES_H 1 |
| 70 | #define HAVE_STDIO_H 1 |
| 71 | #define STDC_HEADERS 1 |
| 72 | #define HAVE_STDLIB_H 1 |
| 73 | #define HAVE_STDARG_H 1 |
| 74 | /* #undef HAVE_MALLOC_H */ |
| 75 | #define HAVE_MEMORY_H 1 |
| 76 | #define HAVE_STRING_H 1 |
| 77 | #define HAVE_STRINGS_H 1 |
| 78 | #define HAVE_INTTYPES_H 1 |
| 79 | #define HAVE_STDINT_H 1 |
| 80 | #define HAVE_CTYPE_H 1 |
| 81 | #define HAVE_MATH_H 1 |
| 82 | #define HAVE_ICONV_H 1 |
| 83 | #define HAVE_SIGNAL_H 1 |
| 84 | /* #undef HAVE_ALTIVEC_H */ |
| 85 | |
| 86 | /* C library functions */ |
| 87 | #define HAVE_MALLOC 1 |
| 88 | #define HAVE_CALLOC 1 |
| 89 | #define HAVE_REALLOC 1 |
| 90 | #define HAVE_FREE 1 |
| 91 | #define HAVE_ALLOCA 1 |
| 92 | #ifndef _WIN32 /* Don't use C runtime versions of these on Windows */ |
| 93 | #define HAVE_GETENV 1 |
| 94 | #define HAVE_SETENV 1 |
| 95 | #define HAVE_PUTENV 1 |
| 96 | #define HAVE_UNSETENV 1 |
| 97 | #endif |
| 98 | #define HAVE_QSORT 1 |
| 99 | #define HAVE_ABS 1 |
| 100 | #define HAVE_BCOPY 1 |
| 101 | #define HAVE_MEMSET 1 |
| 102 | #define HAVE_MEMCPY 1 |
| 103 | #define HAVE_MEMMOVE 1 |
| 104 | #define HAVE_MEMCMP 1 |
| 105 | #define HAVE_STRLEN 1 |
| 106 | #define HAVE_STRLCPY 1 |
| 107 | #define HAVE_STRLCAT 1 |
| 108 | #define HAVE_STRDUP 1 |
| 109 | /* #undef HAVE__STRREV */ |
| 110 | /* #undef HAVE__STRUPR */ |
| 111 | /* #undef HAVE__STRLWR */ |
| 112 | /* #undef HAVE_INDEX */ |
| 113 | /* #undef HAVE_RINDEX */ |
| 114 | #define HAVE_STRCHR 1 |
| 115 | #define HAVE_STRRCHR 1 |
| 116 | #define HAVE_STRSTR 1 |
| 117 | /* #undef HAVE_ITOA */ |
| 118 | /* #undef HAVE__LTOA */ |
| 119 | /* #undef HAVE__UITOA */ |
| 120 | /* #undef HAVE__ULTOA */ |
| 121 | #define HAVE_STRTOL 1 |
| 122 | #define HAVE_STRTOUL 1 |
| 123 | /* #undef HAVE__I64TOA */ |
| 124 | /* #undef HAVE__UI64TOA */ |
| 125 | #define HAVE_STRTOLL 1 |
| 126 | #define HAVE_STRTOULL 1 |
| 127 | #define HAVE_STRTOD 1 |
| 128 | #define HAVE_ATOI 1 |
| 129 | #define HAVE_ATOF 1 |
| 130 | #define HAVE_STRCMP 1 |
| 131 | #define HAVE_STRNCMP 1 |
| 132 | /* #undef HAVE__STRICMP */ |
| 133 | #define HAVE_STRCASECMP 1 |
| 134 | /* #undef HAVE__STRNICMP */ |
| 135 | #define HAVE_STRNCASECMP 1 |
| 136 | #define HAVE_SSCANF 1 |
| 137 | #define HAVE_SNPRINTF 1 |
| 138 | #define HAVE_VSNPRINTF 1 |
| 139 | #define HAVE_M_PI |
| 140 | #define HAVE_CEIL 1 |
| 141 | #define HAVE_COPYSIGN 1 |
| 142 | #define HAVE_COS 1 |
| 143 | #define HAVE_COSF 1 |
| 144 | #define HAVE_FABS 1 |
| 145 | #define HAVE_FLOOR 1 |
| 146 | #define HAVE_LOG 1 |
| 147 | #define HAVE_POW 1 |
| 148 | #define HAVE_SCALBN 1 |
| 149 | #define HAVE_SIN 1 |
| 150 | #define HAVE_SINF 1 |
| 151 | #define HAVE_SQRT 1 |
| 152 | #define HAVE_SIGACTION 1 |
| 153 | #define HAVE_SETJMP 1 |
| 154 | #define HAVE_NANOSLEEP 1 |
| 155 | #define HAVE_SYSCONF 1 |
| 156 | #define HAVE_SYSCTLBYNAME 1 |
| 157 | /* #undef HAVE_CLOCK_GETTIME */ |
| 158 | /* #undef HAVE_GETPAGESIZE */ |
| 159 | #define HAVE_MPROTECT 1 |
| 160 | |
| 161 | #else |
| 162 | /* We may need some replacement for stdarg.h here */ |
| 163 | #include <stdarg.h> |
| 164 | #endif /* HAVE_LIBC */ |
| 165 | |
| 166 | /* SDL internal assertion support */ |
| 167 | /* #undef SDL_DEFAULT_ASSERT_LEVEL */ |
| 168 | |
| 169 | /* Allow disabling of core subsystems */ |
| 170 | #define SDL_AUDIO_DISABLED 1 |
| 171 | #define SDL_CPUINFO_DISABLED 1 |
| 172 | #define SDL_EVENTS_DISABLED 1 |
| 173 | #define SDL_FILE_DISABLED 1 |
| 174 | /* #undef SDL_JOYSTICK_DISABLED */ |
| 175 | /* #undef SDL_HAPTIC_DISABLED */ |
| 176 | #define SDL_LOADSO_DISABLED 1 |
| 177 | #define SDL_THREADS_DISABLED 1 |
| 178 | #define SDL_TIMERS_DISABLED 1 |
| 179 | #define SDL_VIDEO_DISABLED 1 |
| 180 | #define SDL_POWER_DISABLED 1 |
| 181 | |
| 182 | /* Enable various audio drivers */ |
| 183 | /* #undef SDL_AUDIO_DRIVER_ALSA */ |
| 184 | /* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */ |
| 185 | /* #undef SDL_AUDIO_DRIVER_ARTS */ |
| 186 | /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */ |
| 187 | /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */ |
| 188 | /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */ |
| 189 | /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */ |
| 190 | /* #undef SDL_AUDIO_DRIVER_BSD */ |
| 191 | /* #undef SDL_AUDIO_DRIVER_COREAUDIO */ |
| 192 | /* #undef SDL_AUDIO_DRIVER_DISK */ |
| 193 | /* #undef SDL_AUDIO_DRIVER_DUMMY */ |
| 194 | /* #undef SDL_AUDIO_DRIVER_DMEDIA */ |
| 195 | /* #undef SDL_AUDIO_DRIVER_DSOUND */ |
| 196 | /* #undef SDL_AUDIO_DRIVER_ESD */ |
| 197 | /* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */ |
| 198 | /* #undef SDL_AUDIO_DRIVER_MMEAUDIO */ |
| 199 | /* #undef SDL_AUDIO_DRIVER_NAS */ |
| 200 | /* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */ |
| 201 | /* #undef SDL_AUDIO_DRIVER_NDS */ |
| 202 | /* #undef SDL_AUDIO_DRIVER_OSS */ |
| 203 | /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */ |
| 204 | /* #undef SDL_AUDIO_DRIVER_PAUDIO */ |
| 205 | /* #undef SDL_AUDIO_DRIVER_QSA */ |
| 206 | /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */ |
| 207 | /* #undef SDL_AUDIO_DRIVER_WINWAVEOUT */ |
| 208 | /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */ |
| 209 | /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */ |
| 210 | |
| 211 | /* Enable various input drivers */ |
| 212 | /* #undef SDL_INPUT_LINUXEV */ |
| 213 | /* #undef SDL_INPUT_TSLIB */ |
| 214 | /* #undef SDL_JOYSTICK_BEOS */ |
| 215 | /* #undef SDL_JOYSTICK_DINPUT */ |
| 216 | /* #undef SDL_JOYSTICK_DUMMY */ |
| 217 | #define SDL_JOYSTICK_IOKIT 1 |
| 218 | /* #undef SDL_JOYSTICK_LINUX */ |
| 219 | /* #undef SDL_JOYSTICK_NDS */ |
| 220 | /* #undef SDL_JOYSTICK_RISCOS */ |
| 221 | /* #undef SDL_JOYSTICK_WINMM */ |
| 222 | /* #undef SDL_JOYSTICK_USBHID */ |
| 223 | /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */ |
| 224 | /* #undef SDL_HAPTIC_DUMMY */ |
| 225 | /* #undef SDL_HAPTIC_LINUX */ |
| 226 | #define SDL_HAPTIC_IOKIT 1 |
| 227 | /* #undef SDL_HAPTIC_DINPUT */ |
| 228 | |
| 229 | /* Enable various shared object loading systems */ |
| 230 | /* #undef SDL_LOADSO_BEOS */ |
| 231 | /* #undef SDL_LOADSO_DLCOMPAT */ |
| 232 | /* #undef SDL_LOADSO_DLOPEN */ |
| 233 | /* #undef SDL_LOADSO_DUMMY */ |
| 234 | /* #undef SDL_LOADSO_LDG */ |
| 235 | /* #undef SDL_LOADSO_WIN32 */ |
| 236 | |
| 237 | /* Enable various threading systems */ |
| 238 | /* #undef SDL_THREAD_BEOS */ |
| 239 | /* #undef SDL_THREAD_NDS */ |
| 240 | /* #undef SDL_THREAD_PTHREAD */ |
| 241 | /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX */ |
| 242 | /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */ |
| 243 | /* #undef SDL_THREAD_SPROC */ |
| 244 | /* #undef SDL_THREAD_WIN32 */ |
| 245 | |
| 246 | /* Enable various timer systems */ |
| 247 | /* #undef SDL_TIMER_BEOS */ |
| 248 | /* #undef SDL_TIMER_DUMMY */ |
| 249 | /* #undef SDL_TIMER_NDS */ |
| 250 | /* #undef SDL_TIMER_RISCOS */ |
| 251 | /* #undef SDL_TIMER_UNIX */ |
| 252 | /* #undef SDL_TIMER_WIN32 */ |
| 253 | /* #undef SDL_TIMER_WINCE */ |
| 254 | |
| 255 | /* Enable various video drivers */ |
| 256 | /* #undef SDL_VIDEO_DRIVER_BWINDOW */ |
| 257 | /* #undef SDL_VIDEO_DRIVER_COCOA */ |
| 258 | /* #undef SDL_VIDEO_DRIVER_DIRECTFB */ |
| 259 | /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */ |
| 260 | #define SDL_VIDEO_DRIVER_DUMMY 1 |
| 261 | /* #undef SDL_VIDEO_DRIVER_FBCON */ |
| 262 | /* #undef SDL_VIDEO_DRIVER_NDS */ |
| 263 | /* #undef SDL_VIDEO_DRIVER_PHOTON */ |
| 264 | /* #undef SDL_VIDEO_DRIVER_QNXGF */ |
| 265 | /* #undef SDL_VIDEO_DRIVER_PS3 */ |
| 266 | /* #undef SDL_VIDEO_DRIVER_RISCOS */ |
| 267 | /* #undef SDL_VIDEO_DRIVER_SVGALIB */ |
| 268 | /* #undef SDL_VIDEO_DRIVER_WIN32 */ |
| 269 | /* #undef SDL_VIDEO_DRIVER_X11 */ |
| 270 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC */ |
| 271 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT */ |
| 272 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR */ |
| 273 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER */ |
| 274 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT */ |
| 275 | /* #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS */ |
| 276 | /* #undef SDL_VIDEO_DRIVER_X11_VIDMODE */ |
| 277 | /* #undef SDL_VIDEO_DRIVER_X11_XINERAMA */ |
| 278 | /* #undef SDL_VIDEO_DRIVER_X11_XRANDR */ |
| 279 | /* #undef SDL_VIDEO_DRIVER_X11_XINPUT */ |
| 280 | /* #undef SDL_VIDEO_DRIVER_X11_SCRNSAVER */ |
| 281 | /* #undef SDL_VIDEO_DRIVER_X11_XV */ |
| 282 | |
| 283 | /* #undef SDL_VIDEO_RENDER_D3D */ |
| 284 | /* #undef SDL_VIDEO_RENDER_GDI */ |
| 285 | /* #undef SDL_VIDEO_RENDER_OGL */ |
| 286 | /* #undef SDL_VIDEO_RENDER_OGL_ES */ |
| 287 | /* #undef SDL_VIDEO_RENDER_X11 */ |
| 288 | /* #undef SDL_VIDEO_RENDER_GAPI */ |
| 289 | /* #undef SDL_VIDEO_RENDER_DDRAW */ |
| 290 | |
| 291 | /* Enable OpenGL support */ |
| 292 | /* #undef SDL_VIDEO_OPENGL */ |
| 293 | /* #undef SDL_VIDEO_OPENGL_ES */ |
| 294 | /* #undef SDL_VIDEO_OPENGL_BGL */ |
| 295 | /* #undef SDL_VIDEO_OPENGL_CGL */ |
| 296 | /* #undef SDL_VIDEO_OPENGL_GLX */ |
| 297 | /* #undef SDL_VIDEO_OPENGL_WGL */ |
| 298 | /* #undef SDL_VIDEO_OPENGL_OSMESA */ |
| 299 | /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */ |
| 300 | |
| 301 | /* Enable system power support */ |
| 302 | /* #undef SDL_POWER_LINUX */ |
| 303 | /* #undef SDL_POWER_WINDOWS */ |
| 304 | /* #undef SDL_POWER_MACOSX */ |
| 305 | /* #undef SDL_POWER_BEOS */ |
| 306 | /* #undef SDL_POWER_NINTENDODS */ |
| 307 | /* #undef SDL_POWER_HARDWIRED */ |
| 308 | |
| 309 | /* Enable assembly routines */ |
| 310 | /* #undef SDL_ASSEMBLY_ROUTINES */ |
| 311 | /* #undef SDL_ALTIVEC_BLITTERS */ |
| 312 | |
| 313 | #endif /* _SDL_config_h */ |