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