include/SDL_config.h.in
author Sam Lantinga <slouken@libsdl.org>
Fri, 24 Feb 2006 07:26:31 +0000
changeset 1422 d2ee8da60262
parent 1402 d910939febfa
child 1461 11134dc42da8
permissions -rw-r--r--
Added pre-configured versions of SDL_config.h for various platforms
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 #ifndef _SDL_config_h
    24 #define _SDL_config_h
    25 
    26 /* This is a set of defines to configure the SDL features */
    27 
    28 /* General platform specific identifiers */
    29 #include "SDL_platform.h"
    30 
    31 /* C language features */
    32 #undef const
    33 #undef inline
    34 #undef volatile
    35 
    36 /* C datatypes */
    37 #undef size_t
    38 #undef int8_t
    39 #undef uint8_t
    40 #undef int16_t
    41 #undef uint16_t
    42 #undef int32_t
    43 #undef uint32_t
    44 #undef int64_t
    45 #undef uint64_t
    46 #undef uintptr_t
    47 #undef SDL_HAS_64BIT_TYPE
    48 
    49 /* Endianness */
    50 #undef SDL_BYTEORDER
    51 
    52 /* Comment this if you want to build without any C library requirements */
    53 #undef HAVE_LIBC
    54 #if HAVE_LIBC
    55 
    56 /* Useful headers */
    57 #undef HAVE_ALLOCA_H
    58 #undef HAVE_SYS_TYPES_H
    59 #undef HAVE_STDIO_H
    60 #undef STDC_HEADERS
    61 #undef HAVE_STDLIB_H
    62 #undef HAVE_STDARG_H
    63 #undef HAVE_MALLOC_H
    64 #undef HAVE_MEMORY_H
    65 #undef HAVE_STRING_H
    66 #undef HAVE_STRINGS_H
    67 #undef HAVE_INTTYPES_H
    68 #undef HAVE_STDINT_H
    69 #undef HAVE_CTYPE_H
    70 #undef HAVE_MATH_H
    71 #undef HAVE_SIGNAL_H
    72 #undef HAVE_ALTIVEC_H
    73 
    74 /* C library functions */
    75 #undef HAVE_MALLOC
    76 #undef HAVE_CALLOC
    77 #undef HAVE_REALLOC
    78 #undef HAVE_FREE
    79 #undef HAVE_ALLOCA
    80 #ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
    81 #undef HAVE_GETENV
    82 #undef HAVE_PUTENV
    83 #undef HAVE_UNSETENV
    84 #endif
    85 #undef HAVE_QSORT
    86 #undef HAVE_ABS
    87 #undef HAVE_BCOPY
    88 #undef HAVE_MEMSET
    89 #undef HAVE_MEMCPY
    90 #undef HAVE_MEMMOVE
    91 #undef HAVE_MEMCMP
    92 #undef HAVE_STRLEN
    93 #undef HAVE_STRLCPY
    94 #undef HAVE_STRLCAT
    95 #undef HAVE_STRDUP
    96 #undef HAVE__STRREV
    97 #undef HAVE__STRUPR
    98 #undef HAVE__STRLWR
    99 #undef HAVE_INDEX
   100 #undef HAVE_RINDEX
   101 #undef HAVE_STRCHR
   102 #undef HAVE_STRRCHR
   103 #undef HAVE_STRSTR
   104 #undef HAVE_ITOA
   105 #undef HAVE__LTOA
   106 #undef HAVE__UITOA
   107 #undef HAVE__ULTOA
   108 #undef HAVE_STRTOL
   109 #undef HAVE__I64TOA
   110 #undef HAVE__UI64TOA
   111 #undef HAVE_STRTOLL
   112 #undef HAVE_STRTOD
   113 #undef HAVE_ATOI
   114 #undef HAVE_ATOF
   115 #undef HAVE_STRCMP
   116 #undef HAVE_STRNCMP
   117 #undef HAVE_STRICMP
   118 #undef HAVE_STRCASECMP
   119 #undef HAVE_SSCANF
   120 #undef HAVE_SNPRINTF
   121 #undef HAVE_VSNPRINTF
   122 #undef HAVE_SIGACTION
   123 #undef HAVE_SETJMP
   124 #undef HAVE_NANOSLEEP
   125 #undef HAVE_CLOCK_GETTIME
   126 #undef HAVE_DLVSYM
   127 
   128 #else
   129 /* We may need some replacement for stdarg.h here */
   130 #include <stdarg.h>
   131 #endif /* HAVE_LIBC */
   132 
   133 /* Allow disabling of core subsystems */
   134 #undef SDL_AUDIO_DISABLED
   135 #undef SDL_CDROM_DISABLED
   136 #undef SDL_CPUINFO_DISABLED
   137 #undef SDL_EVENTS_DISABLED
   138 #undef SDL_FILE_DISABLED
   139 #undef SDL_JOYSTICK_DISABLED
   140 #undef SDL_LOADSO_DISABLED
   141 #undef SDL_THREADS_DISABLED
   142 #undef SDL_TIMERS_DISABLED
   143 #undef SDL_VIDEO_DISABLED
   144 
   145 /* Enable various audio drivers */
   146 #undef SDL_AUDIO_DRIVER_AHI
   147 #undef SDL_AUDIO_DRIVER_ALSA
   148 #undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
   149 #undef SDL_AUDIO_DRIVER_ARTS
   150 #undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
   151 #undef SDL_AUDIO_DRIVER_BAUDIO
   152 #undef SDL_AUDIO_DRIVER_COREAUDIO
   153 #undef SDL_AUDIO_DRIVER_DART
   154 #undef SDL_AUDIO_DRIVER_DC
   155 #undef SDL_AUDIO_DRIVER_DISK
   156 #undef SDL_AUDIO_DRIVER_DMEDIA
   157 #undef SDL_AUDIO_DRIVER_DSOUND
   158 #undef SDL_AUDIO_DRIVER_ESD
   159 #undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
   160 #undef SDL_AUDIO_DRIVER_MINT
   161 #undef SDL_AUDIO_DRIVER_MMEAUDIO
   162 #undef SDL_AUDIO_DRIVER_NAS
   163 #undef SDL_AUDIO_DRIVER_OPENBSD
   164 #undef SDL_AUDIO_DRIVER_OSS
   165 #undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
   166 #undef SDL_AUDIO_DRIVER_PAUD
   167 #undef SDL_AUDIO_DRIVER_QNXNTO
   168 #undef SDL_AUDIO_DRIVER_SNDMGR
   169 #undef SDL_AUDIO_DRIVER_SUNAUDIO
   170 #undef SDL_AUDIO_DRIVER_WAVEOUT
   171 
   172 /* Enable various cdrom drivers */
   173 #undef SDL_CDROM_AIX
   174 #undef SDL_CDROM_BEOS
   175 #undef SDL_CDROM_BSDI
   176 #undef SDL_CDROM_DC
   177 #undef SDL_CDROM_DUMMY
   178 #undef SDL_CDROM_FREEBSD
   179 #undef SDL_CDROM_LINUX
   180 #undef SDL_CDROM_MACOS
   181 #undef SDL_CDROM_MACOSX
   182 #undef SDL_CDROM_MINT
   183 #undef SDL_CDROM_OPENBSD
   184 #undef SDL_CDROM_OS2
   185 #undef SDL_CDROM_OSF
   186 #undef SDL_CDROM_QNX
   187 #undef SDL_CDROM_WIN32
   188 
   189 /* Enable various input drivers */
   190 #undef SDL_INPUT_TSLIB
   191 #undef SDL_JOYSTICK_AMIGA
   192 #undef SDL_JOYSTICK_BEOS
   193 #undef SDL_JOYSTICK_DC
   194 #undef SDL_JOYSTICK_DUMMY
   195 #undef SDL_JOYSTICK_IOKIT
   196 #undef SDL_JOYSTICK_LINUX
   197 #undef SDL_JOYSTICK_LINUXEV
   198 #undef SDL_JOYSTICK_MACOS
   199 #undef SDL_JOYSTICK_MINT
   200 #undef SDL_JOYSTICK_OS2
   201 #undef SDL_JOYSTICK_RISCOS
   202 #undef SDL_JOYSTICK_WINMM
   203 #undef SDL_JOYSTICK_USBHID
   204 
   205 /* Enable various shared object loading systems */
   206 #undef SDL_LOADSO_BEOS
   207 #undef SDL_LOADSO_DLCOMPAT
   208 #undef SDL_LOADSO_DLOPEN
   209 #undef SDL_LOADSO_LDG
   210 #undef SDL_LOADSO_MACOS
   211 #undef SDL_LOADSO_OS2
   212 #undef SDL_LOADSO_WIN32
   213 
   214 /* Enable various threading systems */
   215 #undef SDL_THREAD_AMIGA
   216 #undef SDL_THREAD_BEOS
   217 #undef SDL_THREAD_DC
   218 #undef SDL_THREAD_EPOC
   219 #undef SDL_THREAD_OS2
   220 #undef SDL_THREAD_PTH
   221 #undef SDL_THREAD_PTHREAD
   222 #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
   223 #undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
   224 #undef SDL_THREAD_SPROC
   225 #undef SDL_THREAD_WIN32
   226 
   227 /* Enable various timer systems */
   228 #undef SDL_TIMER_AMIGA
   229 #undef SDL_TIMER_BEOS
   230 #undef SDL_TIMER_DC
   231 #undef SDL_TIMER_EPOC
   232 #undef SDL_TIMER_MACOS
   233 #undef SDL_TIMER_MINT
   234 #undef SDL_TIMER_OS2
   235 #undef SDL_TIMER_RISCOS
   236 #undef SDL_TIMER_UNIX
   237 #undef SDL_TIMER_WIN32
   238 #undef SDL_TIMER_WINCE
   239 
   240 /* Enable various video drivers */
   241 #undef SDL_VIDEO_DRIVER_AALIB
   242 #undef SDL_VIDEO_DRIVER_BWINDOW
   243 #undef SDL_VIDEO_DRIVER_CYBERGRAPHICS
   244 #undef SDL_VIDEO_DRIVER_DC
   245 #undef SDL_VIDEO_DRIVER_DDRAW
   246 #undef SDL_VIDEO_DRIVER_DGA
   247 #undef SDL_VIDEO_DRIVER_DIRECTFB
   248 #undef SDL_VIDEO_DRIVER_DRAWSPROCKET
   249 #undef SDL_VIDEO_DRIVER_DUMMY
   250 #undef SDL_VIDEO_DRIVER_EPOC
   251 #undef SDL_VIDEO_DRIVER_FBCON
   252 #undef SDL_VIDEO_DRIVER_GAPI
   253 #undef SDL_VIDEO_DRIVER_GEM
   254 #undef SDL_VIDEO_DRIVER_GGI
   255 #undef SDL_VIDEO_DRIVER_IPOD
   256 #undef SDL_VIDEO_DRIVER_NANOX
   257 #undef SDL_VIDEO_DRIVER_OS2FS
   258 #undef SDL_VIDEO_DRIVER_PHOTON
   259 #undef SDL_VIDEO_DRIVER_PICOGUI
   260 #undef SDL_VIDEO_DRIVER_PS2GS
   261 #undef SDL_VIDEO_DRIVER_QTOPIA
   262 #undef SDL_VIDEO_DRIVER_QUARTZ
   263 #undef SDL_VIDEO_DRIVER_RISCOS
   264 #undef SDL_VIDEO_DRIVER_SVGALIB
   265 #undef SDL_VIDEO_DRIVER_TOOLBOX
   266 #undef SDL_VIDEO_DRIVER_VGL
   267 #undef SDL_VIDEO_DRIVER_WINDIB
   268 #undef SDL_VIDEO_DRIVER_WSCONS
   269 #undef SDL_VIDEO_DRIVER_X11
   270 #undef SDL_VIDEO_DRIVER_X11_DGAMOUSE
   271 #undef SDL_VIDEO_DRIVER_X11_DYNAMIC
   272 #undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
   273 #undef SDL_VIDEO_DRIVER_X11_VIDMODE
   274 #undef SDL_VIDEO_DRIVER_X11_XINERAMA
   275 #undef SDL_VIDEO_DRIVER_X11_XME
   276 #undef SDL_VIDEO_DRIVER_X11_XV
   277 #undef SDL_VIDEO_DRIVER_XBIOS
   278 
   279 /* Enable OpenGL support */
   280 #undef SDL_VIDEO_OPENGL
   281 #undef SDL_VIDEO_OPENGL_GLX
   282 #undef SDL_VIDEO_OPENGL_WGL
   283 #undef SDL_VIDEO_OPENGL_OSMESA
   284 #undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
   285 
   286 /* Enable assembly routines */
   287 #undef SDL_ASSEMBLY_ROUTINES
   288 #undef SDL_HERMES_BLITTERS
   289 #undef SDL_ALTIVEC_BLITTERS
   290 
   291 #endif /* _SDL_config_h */