include/SDL_config.h
author Andreas Schiffler <aschiffler@ferzkopp.net>
Mon, 05 Dec 2011 07:41:20 -0800
changeset 6101 4b88086910d3
parent 5853 bdfb7a2a86e1
child 6102 bf7254ec1bf9
permissions -rw-r--r--
Fix buildbot sdl-macosx-unix-x86 and sdl-macosx-amd64 compiler warnings
     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 /* #undef HAVE_PTHREAD_SPINLOCK */
    50 
    51 /* Comment this if you want to build without any C library requirements */
    52 #define HAVE_LIBC 1
    53 #if HAVE_LIBC
    54 
    55 /* Useful headers */
    56 #define HAVE_ALLOCA_H 1
    57 #define HAVE_SYS_TYPES_H 1
    58 #define HAVE_STDIO_H 1
    59 #define STDC_HEADERS 1
    60 #define HAVE_STDLIB_H 1
    61 #define HAVE_STDARG_H 1
    62 /* #undef HAVE_MALLOC_H */
    63 #define HAVE_MEMORY_H 1
    64 #define HAVE_STRING_H 1
    65 #define HAVE_STRINGS_H 1
    66 #define HAVE_INTTYPES_H 1
    67 #define HAVE_STDINT_H 1
    68 #define HAVE_CTYPE_H 1
    69 #define HAVE_MATH_H 1
    70 #define HAVE_ICONV_H 1
    71 #define HAVE_SIGNAL_H 1
    72 /* #undef HAVE_ALTIVEC_H */
    73 /* #undef HAVE_PTHREAD_NP_H */
    74 
    75 /* C library functions */
    76 #define HAVE_MALLOC 1
    77 #define HAVE_CALLOC 1
    78 #define HAVE_REALLOC 1
    79 #define HAVE_FREE 1
    80 #define HAVE_ALLOCA 1
    81 #ifndef __WIN32__ /* Don't use C runtime versions of these on Windows */
    82 #define HAVE_GETENV 1
    83 #define HAVE_SETENV 1
    84 #define HAVE_PUTENV 1
    85 #define HAVE_UNSETENV 1
    86 #endif
    87 #define HAVE_QSORT 1
    88 #define HAVE_ABS 1
    89 #define HAVE_BCOPY 1
    90 #define HAVE_MEMSET 1
    91 #define HAVE_MEMCPY 1
    92 #define HAVE_MEMMOVE 1
    93 #define HAVE_MEMCMP 1
    94 #define HAVE_STRLEN 1
    95 #define HAVE_STRLCPY 1
    96 #define HAVE_STRLCAT 1
    97 #define HAVE_STRDUP 1
    98 /* #undef HAVE__STRREV */
    99 /* #undef HAVE__STRUPR */
   100 /* #undef HAVE__STRLWR */
   101 /* #undef HAVE_INDEX */
   102 /* #undef HAVE_RINDEX */
   103 #define HAVE_STRCHR 1
   104 #define HAVE_STRRCHR 1
   105 #define HAVE_STRSTR 1
   106 /* #undef HAVE_ITOA */
   107 /* #undef HAVE__LTOA */
   108 /* #undef HAVE__UITOA */
   109 /* #undef HAVE__ULTOA */
   110 #define HAVE_STRTOL 1
   111 #define HAVE_STRTOUL 1
   112 /* #undef HAVE__I64TOA */
   113 /* #undef HAVE__UI64TOA */
   114 #define HAVE_STRTOLL 1
   115 #define HAVE_STRTOULL 1
   116 #define HAVE_STRTOD 1
   117 #define HAVE_ATOI 1
   118 #define HAVE_ATOF 1
   119 #define HAVE_STRCMP 1
   120 #define HAVE_STRNCMP 1
   121 /* #undef HAVE__STRICMP */
   122 #define HAVE_STRCASECMP 1
   123 /* #undef HAVE__STRNICMP */
   124 #define HAVE_STRNCASECMP 1
   125 #define HAVE_SSCANF 1
   126 #define HAVE_SNPRINTF 1
   127 #define HAVE_VSNPRINTF 1
   128 #define HAVE_M_PI /**/
   129 #define HAVE_ATAN 1
   130 #define HAVE_ATAN2 1
   131 #define HAVE_CEIL 1
   132 #define HAVE_COPYSIGN 1
   133 #define HAVE_COS 1
   134 #define HAVE_COSF 1
   135 #define HAVE_FABS 1
   136 #define HAVE_FLOOR 1
   137 #define HAVE_LOG 1
   138 #define HAVE_POW 1
   139 #define HAVE_SCALBN 1
   140 #define HAVE_SIN 1
   141 #define HAVE_SINF 1
   142 #define HAVE_SQRT 1
   143 #define HAVE_SIGACTION 1
   144 #define HAVE_SA_SIGACTION 1
   145 #define HAVE_SETJMP 1
   146 #define HAVE_NANOSLEEP 1
   147 #define HAVE_SYSCONF 1
   148 #define HAVE_SYSCTLBYNAME 1
   149 /* #undef HAVE_CLOCK_GETTIME */
   150 /* #undef HAVE_GETPAGESIZE */
   151 #define HAVE_MPROTECT 1
   152 #define HAVE_ICONV 1
   153 #define HAVE_PTHREAD_SETNAME_NP 1
   154 /* #undef HAVE_PTHREAD_SET_NAME_NP */
   155 
   156 #else
   157 /* We may need some replacement for stdarg.h here */
   158 #include <stdarg.h>
   159 #endif /* HAVE_LIBC */
   160 
   161 /* SDL internal assertion support */
   162 /* #undef SDL_DEFAULT_ASSERT_LEVEL */
   163 
   164 /* Allow disabling of core subsystems */
   165 /* #undef SDL_ATOMIC_DISABLED */
   166 /* #undef SDL_AUDIO_DISABLED */
   167 /* #undef SDL_CPUINFO_DISABLED */
   168 /* #undef SDL_EVENTS_DISABLED */
   169 /* #undef SDL_FILE_DISABLED */
   170 /* #undef SDL_JOYSTICK_DISABLED */
   171 /* #undef SDL_HAPTIC_DISABLED */
   172 /* #undef SDL_LOADSO_DISABLED */
   173 /* #undef SDL_RENDER_DISABLED */
   174 /* #undef SDL_THREADS_DISABLED */
   175 /* #undef SDL_TIMERS_DISABLED */
   176 /* #undef SDL_VIDEO_DISABLED */
   177 /* #undef SDL_POWER_DISABLED */
   178 
   179 /* Enable various audio drivers */
   180 /* #undef SDL_AUDIO_DRIVER_ALSA */
   181 /* #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC */
   182 /* #undef SDL_AUDIO_DRIVER_ARTS */
   183 /* #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC */
   184 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO */
   185 /* #undef SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC */
   186 /* #undef SDL_AUDIO_DRIVER_BEOSAUDIO */
   187 /* #undef SDL_AUDIO_DRIVER_BSD */
   188 #define SDL_AUDIO_DRIVER_COREAUDIO 1
   189 #define SDL_AUDIO_DRIVER_DISK 1
   190 #define SDL_AUDIO_DRIVER_DUMMY 1
   191 /* #undef SDL_AUDIO_DRIVER_XAUDIO2 */
   192 /* #undef SDL_AUDIO_DRIVER_DSOUND */
   193 /* #undef SDL_AUDIO_DRIVER_ESD */
   194 /* #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC */
   195 /* #undef SDL_AUDIO_DRIVER_NAS */
   196 /* #undef SDL_AUDIO_DRIVER_NAS_DYNAMIC */
   197 /* #undef SDL_AUDIO_DRIVER_NDS */
   198 /* #undef SDL_AUDIO_DRIVER_OSS */
   199 /* #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H */
   200 /* #undef SDL_AUDIO_DRIVER_PAUDIO */
   201 /* #undef SDL_AUDIO_DRIVER_QSA */
   202 /* #undef SDL_AUDIO_DRIVER_SUNAUDIO */
   203 /* #undef SDL_AUDIO_DRIVER_WINMM */
   204 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND */
   205 /* #undef SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC */
   206 
   207 /* Enable various input drivers */
   208 /* #undef SDL_INPUT_LINUXEV */
   209 /* #undef SDL_INPUT_TSLIB */
   210 /* #undef SDL_JOYSTICK_BEOS */
   211 /* #undef SDL_JOYSTICK_DINPUT */
   212 /* #undef SDL_JOYSTICK_DUMMY */
   213 #define SDL_JOYSTICK_IOKIT 1
   214 /* #undef SDL_JOYSTICK_LINUX */
   215 /* #undef SDL_JOYSTICK_NDS */
   216 /* #undef SDL_JOYSTICK_WINMM */
   217 /* #undef SDL_JOYSTICK_USBHID */
   218 /* #undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H */
   219 /* #undef SDL_HAPTIC_DUMMY */
   220 /* #undef SDL_HAPTIC_LINUX */
   221 #define SDL_HAPTIC_IOKIT 1
   222 /* #undef SDL_HAPTIC_DINPUT */
   223 
   224 /* Enable various shared object loading systems */
   225 /* #undef SDL_LOADSO_BEOS */
   226 #define SDL_LOADSO_DLOPEN 1
   227 /* #undef SDL_LOADSO_DUMMY */
   228 /* #undef SDL_LOADSO_LDG */
   229 /* #undef SDL_LOADSO_WINDOWS */
   230 
   231 /* Enable various threading systems */
   232 /* #undef SDL_THREAD_BEOS */
   233 /* #undef SDL_THREAD_NDS */
   234 #define SDL_THREAD_PTHREAD 1
   235 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
   236 /* #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP */
   237 /* #undef SDL_THREAD_WINDOWS */
   238 
   239 /* Enable various timer systems */
   240 /* #undef SDL_TIMER_BEOS */
   241 /* #undef SDL_TIMER_DUMMY */
   242 /* #undef SDL_TIMER_NDS */
   243 #define SDL_TIMER_UNIX 1
   244 /* #undef SDL_TIMER_WINDOWS */
   245 /* #undef SDL_TIMER_WINCE */
   246 
   247 /* Enable various video drivers */
   248 /* #undef SDL_VIDEO_DRIVER_BWINDOW */
   249 #define SDL_VIDEO_DRIVER_COCOA 1
   250 /* #undef SDL_VIDEO_DRIVER_DIRECTFB */
   251 /* #undef SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC */
   252 #define SDL_VIDEO_DRIVER_DUMMY 1
   253 /* #undef SDL_VIDEO_DRIVER_NDS */
   254 /* #undef SDL_VIDEO_DRIVER_WINDOWS */
   255 #define SDL_VIDEO_DRIVER_X11 1
   256 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "/usr/X11R6/lib/libX11.6.dylib"
   257 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "/usr/X11R6/lib/libXext.6.dylib"
   258 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "/usr/X11R6/lib/libXcursor.1.dylib"
   259 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "/usr/X11R6/lib/libXinerama.1.dylib"
   260 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT "/usr/X11R6/lib/libXi.6.dylib"
   261 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "/usr/X11R6/lib/libXrandr.2.dylib"
   262 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "/usr/X11R6/lib/libXss.1.dylib"
   263 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "/usr/X11R6/lib/libXxf86vm.1.dylib"
   264 #define SDL_VIDEO_DRIVER_X11_XCURSOR 1
   265 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
   266 #define SDL_VIDEO_DRIVER_X11_XINPUT 1
   267 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
   268 #define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1
   269 #define SDL_VIDEO_DRIVER_X11_XSHAPE 1
   270 #define SDL_VIDEO_DRIVER_X11_XVIDMODE 1
   271 
   272 /* #undef SDL_VIDEO_RENDER_D3D */
   273 #define SDL_VIDEO_RENDER_OGL 1
   274 /* #undef SDL_VIDEO_RENDER_OGL_ES */
   275 /* #undef SDL_VIDEO_RENDER_DIRECTFB */
   276 
   277 /* Enable OpenGL support */
   278 #define SDL_VIDEO_OPENGL 1
   279 /* #undef SDL_VIDEO_OPENGL_ES */
   280 /* #undef SDL_VIDEO_OPENGL_BGL */
   281 #define SDL_VIDEO_OPENGL_CGL 1
   282 #define SDL_VIDEO_OPENGL_GLX 1
   283 /* #undef SDL_VIDEO_OPENGL_WGL */
   284 /* #undef SDL_VIDEO_OPENGL_OSMESA */
   285 /* #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC */
   286 
   287 /* Enable system power support */
   288 /* #undef SDL_POWER_LINUX */
   289 /* #undef SDL_POWER_WINDOWS */
   290 #define SDL_POWER_MACOSX 1
   291 /* #undef SDL_POWER_BEOS */
   292 /* #undef SDL_POWER_NINTENDODS */
   293 /* #undef SDL_POWER_HARDWIRED */
   294 
   295 /* Enable assembly routines */
   296 #define SDL_ASSEMBLY_ROUTINES 1
   297 /* #undef SDL_ALTIVEC_BLITTERS */
   298 
   299 #endif /* _SDL_config_h */