include/SDL_config.h
author Andreas Schiffler <aschiffler@ferzkopp.net>
Thu, 26 May 2011 20:13:49 -0700
changeset 5670 bdaa6299e107
parent 5535 96594ac5fd1a
child 5853 bdfb7a2a86e1
permissions -rw-r--r--
Fixed global suite declaration segfault via external linkage declaration
     1 /* include/SDL_config.h.  Generated from SDL_config.h.in by configure.  */
     2 /*
     3   Simple DirectMedia Layer
     4   Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
     5 
     6   This software is provided 'as-is', without any express or implied
     7   warranty.  In no event will the authors be held liable for any damages
     8   arising from the use of this software.
     9 
    10   Permission is granted to anyone to use this software for any purpose,
    11   including commercial applications, and to alter it and redistribute it
    12   freely, subject to the following restrictions:
    13 
    14   1. The origin of this software must not be misrepresented; you must not
    15      claim that you wrote the original software. If you use this software
    16      in a product, an acknowledgment in the product documentation would be
    17      appreciated but is not required.
    18   2. Altered source versions must be plainly marked as such, and must not be
    19      misrepresented as being the original software.
    20   3. This notice may not be removed or altered from any source distribution.
    21 */
    22 
    23 #ifndef _SDL_config_h
    24 #define _SDL_config_h
    25 
    26 /**
    27  *  \file SDL_config.h.in
    28  *
    29  *  This is a set of defines to configure the SDL features
    30  */
    31 
    32 /* General platform specific identifiers */
    33 #include "SDL_platform.h"
    34 
    35 /* Make sure that this isn't included by Visual C++ */
    36 #ifdef _MSC_VER
    37 #error You should run hg revert SDL_config.h 
    38 #endif
    39 
    40 /* C language features */
    41 /* #undef const */
    42 /* #undef inline */
    43 /* #undef volatile */
    44 
    45 /* C datatypes */
    46 #define SIZEOF_VOIDP 8
    47 #define HAVE_GCC_ATOMICS 1
    48 /* #undef HAVE_GCC_SYNC_LOCK_TEST_AND_SET */
    49 
    50 /* Comment this if you want to build without any C library requirements */
    51 #define HAVE_LIBC 1
    52 #if HAVE_LIBC
    53 
    54 /* Useful headers */
    55 #define HAVE_ALLOCA_H 1
    56 #define HAVE_SYS_TYPES_H 1
    57 #define HAVE_STDIO_H 1
    58 #define STDC_HEADERS 1
    59 #define HAVE_STDLIB_H 1
    60 #define HAVE_STDARG_H 1
    61 /* #undef HAVE_MALLOC_H */
    62 #define HAVE_MEMORY_H 1
    63 #define HAVE_STRING_H 1
    64 #define HAVE_STRINGS_H 1
    65 #define HAVE_INTTYPES_H 1
    66 #define HAVE_STDINT_H 1
    67 #define HAVE_CTYPE_H 1
    68 #define HAVE_MATH_H 1
    69 #define HAVE_ICONV_H 1
    70 #define HAVE_SIGNAL_H 1
    71 /* #undef HAVE_ALTIVEC_H */
    72 
    73 /* C library functions */
    74 #define HAVE_MALLOC 1
    75 #define HAVE_CALLOC 1
    76 #define HAVE_REALLOC 1
    77 #define HAVE_FREE 1
    78 #define HAVE_ALLOCA 1
    79 #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
    80 #define HAVE_GETENV 1
    81 #define HAVE_SETENV 1
    82 #define HAVE_PUTENV 1
    83 #define HAVE_UNSETENV 1
    84 #endif
    85 #define HAVE_QSORT 1
    86 #define HAVE_ABS 1
    87 #define HAVE_BCOPY 1
    88 #define HAVE_MEMSET 1
    89 #define HAVE_MEMCPY 1
    90 #define HAVE_MEMMOVE 1
    91 #define HAVE_MEMCMP 1
    92 #define HAVE_STRLEN 1
    93 #define HAVE_STRLCPY 1
    94 #define HAVE_STRLCAT 1
    95 #define HAVE_STRDUP 1
    96 /* #undef HAVE__STRREV */
    97 /* #undef HAVE__STRUPR */
    98 /* #undef HAVE__STRLWR */
    99 /* #undef HAVE_INDEX */
   100 /* #undef HAVE_RINDEX */
   101 #define HAVE_STRCHR 1
   102 #define HAVE_STRRCHR 1
   103 #define HAVE_STRSTR 1
   104 /* #undef HAVE_ITOA */
   105 /* #undef HAVE__LTOA */
   106 /* #undef HAVE__UITOA */
   107 /* #undef HAVE__ULTOA */
   108 #define HAVE_STRTOL 1
   109 #define HAVE_STRTOUL 1
   110 /* #undef HAVE__I64TOA */
   111 /* #undef HAVE__UI64TOA */
   112 #define HAVE_STRTOLL 1
   113 #define HAVE_STRTOULL 1
   114 #define HAVE_STRTOD 1
   115 #define HAVE_ATOI 1
   116 #define HAVE_ATOF 1
   117 #define HAVE_STRCMP 1
   118 #define HAVE_STRNCMP 1
   119 /* #undef HAVE__STRICMP */
   120 #define HAVE_STRCASECMP 1
   121 /* #undef HAVE__STRNICMP */
   122 #define HAVE_STRNCASECMP 1
   123 #define HAVE_SSCANF 1
   124 #define HAVE_SNPRINTF 1
   125 #define HAVE_VSNPRINTF 1
   126 #define HAVE_M_PI 
   127 #define HAVE_ATAN 1
   128 #define HAVE_ATAN2 1
   129 #define HAVE_CEIL 1
   130 #define HAVE_COPYSIGN 1
   131 #define HAVE_COS 1
   132 #define HAVE_COSF 1
   133 #define HAVE_FABS 1
   134 #define HAVE_FLOOR 1
   135 #define HAVE_LOG 1
   136 #define HAVE_POW 1
   137 #define HAVE_SCALBN 1
   138 #define HAVE_SIN 1
   139 #define HAVE_SINF 1
   140 #define HAVE_SQRT 1
   141 #define HAVE_SIGACTION 1
   142 #define HAVE_SETJMP 1
   143 #define HAVE_NANOSLEEP 1
   144 #define HAVE_SYSCONF 1
   145 #define HAVE_SYSCTLBYNAME 1
   146 /* #undef HAVE_CLOCK_GETTIME */
   147 /* #undef HAVE_GETPAGESIZE */
   148 #define HAVE_MPROTECT 1
   149 #define HAVE_ICONV 1
   150 
   151 #else
   152 /* We may need some replacement for stdarg.h here */
   153 #include <stdarg.h>
   154 #endif /* HAVE_LIBC */
   155 
   156 /* SDL internal assertion support */
   157 /* #undef SDL_DEFAULT_ASSERT_LEVEL */
   158 
   159 /* Allow disabling of core subsystems */
   160 /* #undef SDL_ATOMIC_DISABLED */
   161 /* #undef SDL_AUDIO_DISABLED */
   162 /* #undef SDL_CPUINFO_DISABLED */
   163 /* #undef SDL_EVENTS_DISABLED */
   164 /* #undef SDL_FILE_DISABLED */
   165 /* #undef SDL_JOYSTICK_DISABLED */
   166 /* #undef SDL_HAPTIC_DISABLED */
   167 /* #undef SDL_LOADSO_DISABLED */
   168 /* #undef SDL_RENDER_DISABLED */
   169 /* #undef SDL_THREADS_DISABLED */
   170 /* #undef SDL_TIMERS_DISABLED */
   171 /* #undef SDL_VIDEO_DISABLED */
   172 /* #undef SDL_POWER_DISABLED */
   173 
   174 /* Enable various audio drivers */
   175 /* #undef SDL_AUDIO_DRIVER_ALSA */
   176 /* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */
   177 /* #undef SDL_AUDIO_DRIVER_ARTS */
   178 /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
   179 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */
   180 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
   181 /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */
   182 /* #undef SDL_AUDIO_DRIVER_BSD */
   183 #define SDL_AUDIO_DRIVER_COREAUDIO 1
   184 #define SDL_AUDIO_DRIVER_DISK 1
   185 #define SDL_AUDIO_DRIVER_DUMMY 1
   186 /* #undef SDL_AUDIO_DRIVER_DSOUND */
   187 /* #undef SDL_AUDIO_DRIVER_ESD */
   188 /* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
   189 /* #undef SDL_AUDIO_DRIVER_NAS */
   190 /* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
   191 /* #undef SDL_AUDIO_DRIVER_NDS */
   192 /* #undef SDL_AUDIO_DRIVER_OSS */
   193 /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
   194 /* #undef SDL_AUDIO_DRIVER_PAUDIO */
   195 /* #undef SDL_AUDIO_DRIVER_QSA */
   196 /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
   197 /* #undef SDL_AUDIO_DRIVER_WINWAVEOUT */
   198 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
   199 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
   200 
   201 /* Enable various input drivers */
   202 /* #undef SDL_INPUT_LINUXEV */
   203 /* #undef SDL_INPUT_TSLIB */
   204 /* #undef SDL_JOYSTICK_BEOS */
   205 /* #undef SDL_JOYSTICK_DINPUT */
   206 /* #undef SDL_JOYSTICK_DUMMY */
   207 #define SDL_JOYSTICK_IOKIT 1
   208 /* #undef SDL_JOYSTICK_LINUX */
   209 /* #undef SDL_JOYSTICK_NDS */
   210 /* #undef SDL_JOYSTICK_WINMM */
   211 /* #undef SDL_JOYSTICK_USBHID */
   212 /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
   213 /* #undef SDL_HAPTIC_DUMMY */
   214 /* #undef SDL_HAPTIC_LINUX */
   215 #define SDL_HAPTIC_IOKIT 1
   216 /* #undef SDL_HAPTIC_DINPUT */
   217 
   218 /* Enable various shared object loading systems */
   219 /* #undef SDL_LOADSO_BEOS */
   220 /* #undef SDL_LOADSO_DLCOMPAT */
   221 #define SDL_LOADSO_DLOPEN 1
   222 /* #undef SDL_LOADSO_DUMMY */
   223 /* #undef SDL_LOADSO_LDG */
   224 /* #undef SDL_LOADSO_WINDOWS */
   225 
   226 /* Enable various threading systems */
   227 /* #undef SDL_THREAD_BEOS */
   228 /* #undef SDL_THREAD_NDS */
   229 #define SDL_THREAD_PTHREAD 1
   230 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
   231 /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
   232 /* #undef SDL_THREAD_SPROC */
   233 /* #undef SDL_THREAD_WINDOWS */
   234 
   235 /* Enable various timer systems */
   236 /* #undef SDL_TIMER_BEOS */
   237 /* #undef SDL_TIMER_DUMMY */
   238 /* #undef SDL_TIMER_NDS */
   239 #define SDL_TIMER_UNIX 1
   240 /* #undef SDL_TIMER_WINDOWS */
   241 /* #undef SDL_TIMER_WINCE */
   242 
   243 /* Enable various video drivers */
   244 /* #undef SDL_VIDEO_DRIVER_BWINDOW */
   245 #define SDL_VIDEO_DRIVER_COCOA 1
   246 /* #undef SDL_VIDEO_DRIVER_DIRECTFB */
   247 /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
   248 #define SDL_VIDEO_DRIVER_DUMMY 1
   249 /* #undef SDL_VIDEO_DRIVER_NDS */
   250 /* #undef SDL_VIDEO_DRIVER_WINDOWS */
   251 #define SDL_VIDEO_DRIVER_X11 1
   252 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
   253 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
   254 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "/usr/X11R6/lib/libXcursor.1.dylib"
   255 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
   256 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "/usr/X11R6/lib/libXi.6.dylib"
   257 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
   258 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
   259 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
   260 #define SDL_VIDEO_DRIVER_X11_XCURSOR 1
   261 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
   262 #define SDL_VIDEO_DRIVER_X11_XINPUT 1
   263 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
   264 #define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
   265 #define SDL_VIDEO_DRIVER_X11_XSHAPE 1
   266 #define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
   267 
   268 /* #undef SDL_VIDEO_RENDER_D3D */
   269 #define SDL_VIDEO_RENDER_OGL 1
   270 /* #undef SDL_VIDEO_RENDER_OGL_ES */
   271 /* #undef SDL_VIDEO_RENDER_DIRECTFB */
   272 
   273 /* Enable OpenGL support */
   274 #define SDL_VIDEO_OPENGL 1
   275 /* #undef SDL_VIDEO_OPENGL_ES */
   276 /* #undef SDL_VIDEO_OPENGL_BGL */
   277 #define SDL_VIDEO_OPENGL_CGL 1
   278 #define SDL_VIDEO_OPENGL_GLX 1
   279 /* #undef SDL_VIDEO_OPENGL_WGL */
   280 /* #undef SDL_VIDEO_OPENGL_OSMESA */
   281 /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
   282 
   283 /* Enable system power support */
   284 /* #undef SDL_POWER_LINUX */
   285 /* #undef SDL_POWER_WINDOWS */
   286 #define SDL_POWER_MACOSX 1
   287 /* #undef SDL_POWER_BEOS */
   288 /* #undef SDL_POWER_NINTENDODS */
   289 /* #undef SDL_POWER_HARDWIRED */
   290 
   291 /* Enable assembly routines */
   292 #define SDL_ASSEMBLY_ROUTINES 1
   293 /* #undef SDL_ALTIVEC_BLITTERS */
   294 
   295 #endif /* _SDL_config_h */