00001 /* include/SDL_config.h. Generated from SDL_config.h.in by configure. */ 00002 /* 00003 SDL - Simple DirectMedia Layer 00004 Copyright (C) 1997-2009 Sam Lantinga 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 Sam Lantinga 00021 slouken@libsdl.org 00022 */ 00023 00024 #ifndef _SDL_config_h 00025 #define _SDL_config_h 00026 00027 /* This is a set of defines to configure the SDL features */ 00028 00029 /* General platform specific identifiers */ 00030 #include "SDL_platform.h" 00031 00032 /* Make sure that this isn't included by Visual C++ */ 00033 #ifdef _MSC_VER 00034 #error You should copy include/SDL_config.h.default to include/SDL_config.h 00035 #endif 00036 00037 /* C language features */ 00038 /* #undef const */ 00039 /* #undef inline */ 00040 /* #undef volatile */ 00041 00042 /* C datatypes */ 00043 #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H) 00044 /* #undef size_t */ 00045 /* #undef int8_t */ 00046 /* #undef uint8_t */ 00047 /* #undef int16_t */ 00048 /* #undef uint16_t */ 00049 /* #undef int32_t */ 00050 /* #undef uint32_t */ 00051 /* #undef int64_t */ 00052 /* #undef uint64_t */ 00053 /* #undef uintptr_t */ 00054 #endif /* !_STDINT_H_ && !HAVE_STDINT_H */ 00055 00056 #define SIZEOF_VOIDP 8 00057 #define SDL_HAS_64BIT_TYPE 1 00058 00059 /* Endianness */ 00060 #define SDL_BYTEORDER 1234 00061 00062 /* Comment this if you want to build without any C library requirements */ 00063 #define HAVE_LIBC 1 00064 #if HAVE_LIBC 00065 00066 /* Useful headers */ 00067 #define HAVE_ALLOCA_H 1 00068 #define HAVE_SYS_TYPES_H 1 00069 #define HAVE_STDIO_H 1 00070 #define STDC_HEADERS 1 00071 #define HAVE_STDLIB_H 1 00072 #define HAVE_STDARG_H 1 00073 /* #undef HAVE_MALLOC_H */ 00074 #define HAVE_MEMORY_H 1 00075 #define HAVE_STRING_H 1 00076 #define HAVE_STRINGS_H 1 00077 #define HAVE_INTTYPES_H 1 00078 #define HAVE_STDINT_H 1 00079 #define HAVE_CTYPE_H 1 00080 #define HAVE_MATH_H 1 00081 #define HAVE_ICONV_H 1 00082 #define HAVE_SIGNAL_H 1 00083 /* #undef HAVE_ALTIVEC_H */ 00084 00085 /* C library functions */ 00086 #define HAVE_MALLOC 1 00087 #define HAVE_CALLOC 1 00088 #define HAVE_REALLOC 1 00089 #define HAVE_FREE 1 00090 #define HAVE_ALLOCA 1 00091 #ifndef _WIN32 /* Don't use C runtime versions of these on Windows */ 00092 #define HAVE_GETENV 1 00093 #define HAVE_PUTENV 1 00094 #define HAVE_UNSETENV 1 00095 #endif 00096 #define HAVE_QSORT 1 00097 #define HAVE_ABS 1 00098 #define HAVE_BCOPY 1 00099 #define HAVE_MEMSET 1 00100 #define HAVE_MEMCPY 1 00101 #define HAVE_MEMMOVE 1 00102 #define HAVE_MEMCMP 1 00103 #define HAVE_STRLEN 1 00104 #define HAVE_STRLCPY 1 00105 #define HAVE_STRLCAT 1 00106 #define HAVE_STRDUP 1 00107 /* #undef HAVE__STRREV */ 00108 /* #undef HAVE__STRUPR */ 00109 /* #undef HAVE__STRLWR */ 00110 /* #undef HAVE_INDEX */ 00111 /* #undef HAVE_RINDEX */ 00112 #define HAVE_STRCHR 1 00113 #define HAVE_STRRCHR 1 00114 #define HAVE_STRSTR 1 00115 /* #undef HAVE_ITOA */ 00116 /* #undef HAVE__LTOA */ 00117 /* #undef HAVE__UITOA */ 00118 /* #undef HAVE__ULTOA */ 00119 #define HAVE_STRTOL 1 00120 #define HAVE_STRTOUL 1 00121 /* #undef HAVE__I64TOA */ 00122 /* #undef HAVE__UI64TOA */ 00123 #define HAVE_STRTOLL 1 00124 #define HAVE_STRTOULL 1 00125 #define HAVE_STRTOD 1 00126 #define HAVE_ATOI 1 00127 #define HAVE_ATOF 1 00128 #define HAVE_STRCMP 1 00129 #define HAVE_STRNCMP 1 00130 /* #undef HAVE__STRICMP */ 00131 #define HAVE_STRCASECMP 1 00132 /* #undef HAVE__STRNICMP */ 00133 #define HAVE_STRNCASECMP 1 00134 #define HAVE_SSCANF 1 00135 #define HAVE_SNPRINTF 1 00136 #define HAVE_VSNPRINTF 1 00137 #define HAVE_M_PI 1 00138 #define HAVE_CEIL 1 00139 #define HAVE_COPYSIGN 1 00140 #define HAVE_COS 1 00141 #define HAVE_COSF 1 00142 #define HAVE_FABS 1 00143 #define HAVE_FLOOR 1 00144 #define HAVE_LOG 1 00145 #define HAVE_POW 1 00146 #define HAVE_SCALBN 1 00147 #define HAVE_SIN 1 00148 #define HAVE_SINF 1 00149 #define HAVE_SQRT 1 00150 #define HAVE_SIGACTION 1 00151 #define HAVE_SETJMP 1 00152 #define HAVE_NANOSLEEP 1 00153 /* #undef HAVE_CLOCK_GETTIME */ 00154 /* #undef HAVE_DLVSYM */ 00155 /* #undef HAVE_GETPAGESIZE */ 00156 00157 #else 00158 /* We may need some replacement for stdarg.h here */ 00159 #include <stdarg.h> 00160 #endif /* HAVE_LIBC */ 00161 00162 /* Allow disabling of core subsystems */ 00163 /* #undef SDL_AUDIO_DISABLED */ 00164 /* #undef SDL_CPUINFO_DISABLED */ 00165 /* #undef SDL_EVENTS_DISABLED */ 00166 /* #undef SDL_FILE_DISABLED */ 00167 /* #undef SDL_JOYSTICK_DISABLED */ 00168 /* #undef SDL_HAPTIC_DISABLED */ 00169 /* #undef SDL_LOADSO_DISABLED */ 00170 /* #undef SDL_THREADS_DISABLED */ 00171 /* #undef SDL_TIMERS_DISABLED */ 00172 /* #undef SDL_VIDEO_DISABLED */ 00173 /* #undef SDL_POWER_DISABLED */ 00174 00175 /* Enable various audio drivers */ 00176 /* #undef SDL_AUDIO_DRIVER_ALSA */ 00177 /* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */ 00178 /* #undef SDL_AUDIO_DRIVER_ARTS */ 00179 /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */ 00180 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */ 00181 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */ 00182 /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */ 00183 /* #undef SDL_AUDIO_DRIVER_BSD */ 00184 #define SDL_AUDIO_DRIVER_COREAUDIO 1 00185 #define SDL_AUDIO_DRIVER_DISK 1 00186 #define SDL_AUDIO_DRIVER_DUMMY 1 00187 /* #undef SDL_AUDIO_DRIVER_DMEDIA */ 00188 /* #undef SDL_AUDIO_DRIVER_DSOUND */ 00189 /* #undef SDL_AUDIO_DRIVER_ESD */ 00190 /* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */ 00191 /* #undef SDL_AUDIO_DRIVER_MMEAUDIO */ 00192 /* #undef SDL_AUDIO_DRIVER_NAS */ 00193 /* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */ 00194 /* #undef SDL_AUDIO_DRIVER_NDS */ 00195 /* #undef SDL_AUDIO_DRIVER_OSS */ 00196 /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */ 00197 /* #undef SDL_AUDIO_DRIVER_PAUDIO */ 00198 /* #undef SDL_AUDIO_DRIVER_QSA */ 00199 /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */ 00200 /* #undef SDL_AUDIO_DRIVER_WINWAVEOUT */ 00201 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */ 00202 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */ 00203 00204 /* Enable various input drivers */ 00205 /* #undef SDL_INPUT_LINUXEV */ 00206 /* #undef SDL_INPUT_TSLIB */ 00207 /* #undef SDL_JOYSTICK_BEOS */ 00208 /* #undef SDL_JOYSTICK_DINPUT */ 00209 /* #undef SDL_JOYSTICK_DUMMY */ 00210 #define SDL_JOYSTICK_IOKIT 1 00211 /* #undef SDL_JOYSTICK_LINUX */ 00212 /* #undef SDL_JOYSTICK_NDS */ 00213 /* #undef SDL_JOYSTICK_RISCOS */ 00214 /* #undef SDL_JOYSTICK_WINMM */ 00215 /* #undef SDL_JOYSTICK_USBHID */ 00216 /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */ 00217 /* #undef SDL_HAPTIC_DUMMY */ 00218 /* #undef SDL_HAPTIC_LINUX */ 00219 #define SDL_HAPTIC_IOKIT 1 00220 /* #undef SDL_HAPTIC_DINPUT */ 00221 00222 /* Enable various shared object loading systems */ 00223 /* #undef SDL_LOADSO_BEOS */ 00224 /* #undef SDL_LOADSO_DLCOMPAT */ 00225 #define SDL_LOADSO_DLOPEN 1 00226 /* #undef SDL_LOADSO_DUMMY */ 00227 /* #undef SDL_LOADSO_LDG */ 00228 /* #undef SDL_LOADSO_WIN32 */ 00229 00230 /* Enable various threading systems */ 00231 /* #undef SDL_THREAD_BEOS */ 00232 /* #undef SDL_THREAD_NDS */ 00233 /* #undef SDL_THREAD_PTH */ 00234 #define SDL_THREAD_PTHREAD 1 00235 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1 00236 /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */ 00237 /* #undef SDL_THREAD_SPROC */ 00238 /* #undef SDL_THREAD_WIN32 */ 00239 00240 /* Enable various timer systems */ 00241 /* #undef SDL_TIMER_BEOS */ 00242 /* #undef SDL_TIMER_DUMMY */ 00243 /* #undef SDL_TIMER_NDS */ 00244 /* #undef SDL_TIMER_RISCOS */ 00245 #define SDL_TIMER_UNIX 1 00246 /* #undef SDL_TIMER_WIN32 */ 00247 /* #undef SDL_TIMER_WINCE */ 00248 00249 /* Enable various video drivers */ 00250 /* #undef SDL_VIDEO_DRIVER_BWINDOW */ 00251 #define SDL_VIDEO_DRIVER_COCOA 1 00252 /* #undef SDL_VIDEO_DRIVER_DIRECTFB */ 00253 /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */ 00254 #define SDL_VIDEO_DRIVER_DUMMY 1 00255 /* #undef SDL_VIDEO_DRIVER_FBCON */ 00256 /* #undef SDL_VIDEO_DRIVER_NDS */ 00257 /* #undef SDL_VIDEO_DRIVER_PHOTON */ 00258 /* #undef SDL_VIDEO_DRIVER_QNXGF */ 00259 /* #undef SDL_VIDEO_DRIVER_PS2GS */ 00260 /* #undef SDL_VIDEO_DRIVER_PS3 */ 00261 /* #undef SDL_VIDEO_DRIVER_RISCOS */ 00262 /* #undef SDL_VIDEO_DRIVER_SVGALIB */ 00263 /* #undef SDL_VIDEO_DRIVER_WIN32 */ 00264 #define SDL_VIDEO_DRIVER_X11 1 00265 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib" 00266 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib" 00267 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib" 00268 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "/usr/X11R6/lib/libXrender.1.dylib" 00269 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "/usr/X11R6/lib/libXi.6.dylib" 00270 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.6.dylib" 00271 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1 00272 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1 00273 #define SDL_VIDEO_DRIVER_X11_XRANDR 1 00274 #define SDL_VIDEO_DRIVER_X11_XINPUT 1 00275 #define SDL_VIDEO_DRIVER_X11_SCRNSAVER 1 00276 #define SDL_VIDEO_DRIVER_X11_XV 1 00277 00278 /* #undef SDL_VIDEO_RENDER_D3D */ 00279 /* #undef SDL_VIDEO_RENDER_GDI */ 00280 #define SDL_VIDEO_RENDER_OGL 1 00281 /* #undef SDL_VIDEO_RENDER_OGL_ES */ 00282 #define SDL_VIDEO_RENDER_X11 1 00283 /* #undef SDL_VIDEO_RENDER_GAPI */ 00284 /* #undef SDL_VIDEO_RENDER_DDRAW */ 00285 00286 /* Enable OpenGL support */ 00287 #define SDL_VIDEO_OPENGL 1 00288 /* #undef SDL_VIDEO_OPENGL_ES */ 00289 /* #undef SDL_VIDEO_OPENGL_BGL */ 00290 #define SDL_VIDEO_OPENGL_CGL 1 00291 #define SDL_VIDEO_OPENGL_GLX 1 00292 /* #undef SDL_VIDEO_OPENGL_WGL */ 00293 /* #undef SDL_VIDEO_OPENGL_OSMESA */ 00294 /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */ 00295 00296 /* Enable system power support */ 00297 /* #undef SDL_POWER_LINUX */ 00298 /* #undef SDL_POWER_WINDOWS */ 00299 #define SDL_POWER_MACOSX 1 00300 /* #undef SDL_POWER_BEOS */ 00301 /* #undef SDL_POWER_NINTENDODS */ 00302 /* #undef SDL_POWER_HARDWIRED */ 00303 00304 /* Enable assembly routines */ 00305 #define SDL_ASSEMBLY_ROUTINES 1 00306 /* #undef SDL_ALTIVEC_BLITTERS */ 00307 00308 #endif /* _SDL_config_h */