include/SDL_config.h.in
author Ozkan Sezer <sezeroz@gmail.com>
Sun, 14 Oct 2018 15:25:04 +0300
branchSDL-1.2
changeset 12325 c4f2eeda176f
parent 11975 addd798b16a0
permissions -rw-r--r--
remove symlink for libSDL-1.0.so.0 from the rpm spec file.

also fix a changelog date.
slouken@1341
     1
/*
slouken@1341
     2
    SDL - Simple DirectMedia Layer
slouken@6137
     3
    Copyright (C) 1997-2012 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@1341
    26
/* This is a set of defines to configure the SDL features */
slouken@1341
    27
slouken@1402
    28
/* General platform specific identifiers */
slouken@1402
    29
#include "SDL_platform.h"
slouken@1402
    30
slouken@4050
    31
/* Make sure that this isn't included by Visual C++ */
slouken@4050
    32
#ifdef _MSC_VER
slouken@4050
    33
#error You should copy include/SDL_config.h.default to include/SDL_config.h
slouken@4050
    34
#endif
slouken@4050
    35
slouken@1353
    36
/* C language features */
slouken@1353
    37
#undef const
slouken@1353
    38
#undef inline
slouken@1353
    39
#undef volatile
slouken@1352
    40
slouken@1353
    41
/* C datatypes */
slouken@1353
    42
#undef size_t
slouken@1353
    43
#undef int8_t
slouken@1353
    44
#undef uint8_t
slouken@1353
    45
#undef int16_t
slouken@1353
    46
#undef uint16_t
slouken@1353
    47
#undef int32_t
slouken@1353
    48
#undef uint32_t
slouken@1353
    49
#undef int64_t
slouken@1353
    50
#undef uint64_t
slouken@1353
    51
#undef uintptr_t
slouken@1383
    52
#undef SDL_HAS_64BIT_TYPE
slouken@1353
    53
slouken@1354
    54
/* Endianness */
slouken@1354
    55
#undef SDL_BYTEORDER
slouken@1354
    56
slouken@1353
    57
/* Comment this if you want to build without any C library requirements */
slouken@1341
    58
#undef HAVE_LIBC
slouken@1402
    59
#if HAVE_LIBC
slouken@1341
    60
slouken@1353
    61
/* Useful headers */
slouken@1367
    62
#undef HAVE_ALLOCA_H
slouken@1353
    63
#undef HAVE_SYS_TYPES_H
slouken@1352
    64
#undef HAVE_STDIO_H
slouken@1353
    65
#undef STDC_HEADERS
slouken@1352
    66
#undef HAVE_STDLIB_H
slouken@1353
    67
#undef HAVE_STDARG_H
slouken@1352
    68
#undef HAVE_MALLOC_H
slouken@1353
    69
#undef HAVE_MEMORY_H
slouken@1352
    70
#undef HAVE_STRING_H
slouken@1353
    71
#undef HAVE_STRINGS_H
slouken@1353
    72
#undef HAVE_INTTYPES_H
slouken@1353
    73
#undef HAVE_STDINT_H
slouken@1352
    74
#undef HAVE_CTYPE_H
slouken@1361
    75
#undef HAVE_MATH_H
slouken@1501
    76
#undef HAVE_ICONV_H
slouken@1352
    77
#undef HAVE_SIGNAL_H
slouken@1361
    78
#undef HAVE_ALTIVEC_H
slouken@1341
    79
slouken@1353
    80
/* C library functions */
slouken@1352
    81
#undef HAVE_MALLOC
slouken@1352
    82
#undef HAVE_CALLOC
slouken@1352
    83
#undef HAVE_REALLOC
slouken@1352
    84
#undef HAVE_FREE
slouken@1352
    85
#undef HAVE_ALLOCA
slouken@1352
    86
#ifndef _WIN32 /* Don't use C runtime versions of these on Windows */
slouken@1352
    87
#undef HAVE_GETENV
slouken@1352
    88
#undef HAVE_PUTENV
slouken@1352
    89
#undef HAVE_UNSETENV
slouken@1352
    90
#endif
slouken@1352
    91
#undef HAVE_QSORT
slouken@1341
    92
#undef HAVE_ABS
slouken@1353
    93
#undef HAVE_BCOPY
slouken@1352
    94
#undef HAVE_MEMSET
slouken@1352
    95
#undef HAVE_MEMCPY
slouken@1352
    96
#undef HAVE_MEMMOVE
slouken@1352
    97
#undef HAVE_MEMCMP
slouken@1352
    98
#undef HAVE_STRLEN
slouken@1379
    99
#undef HAVE_STRLCPY
slouken@1379
   100
#undef HAVE_STRLCAT
slouken@1352
   101
#undef HAVE_STRDUP
slouken@1352
   102
#undef HAVE__STRREV
slouken@1352
   103
#undef HAVE__STRUPR
slouken@1352
   104
#undef HAVE__STRLWR
slouken@1353
   105
#undef HAVE_INDEX
slouken@1353
   106
#undef HAVE_RINDEX
slouken@1352
   107
#undef HAVE_STRCHR
slouken@1352
   108
#undef HAVE_STRRCHR
slouken@1352
   109
#undef HAVE_STRSTR
slouken@1352
   110
#undef HAVE_ITOA
slouken@1352
   111
#undef HAVE__LTOA
slouken@1352
   112
#undef HAVE__UITOA
slouken@1352
   113
#undef HAVE__ULTOA
slouken@1352
   114
#undef HAVE_STRTOL
slouken@1461
   115
#undef HAVE_STRTOUL
slouken@1352
   116
#undef HAVE__I64TOA
slouken@1352
   117
#undef HAVE__UI64TOA
slouken@1352
   118
#undef HAVE_STRTOLL
slouken@1461
   119
#undef HAVE_STRTOULL
sezeroz@11975
   120
#undef HAVE__STRTOI64
sezeroz@11975
   121
#undef HAVE__STRTOUI64
slouken@1352
   122
#undef HAVE_STRTOD
slouken@1352
   123
#undef HAVE_ATOI
slouken@1341
   124
#undef HAVE_ATOF
slouken@1352
   125
#undef HAVE_STRCMP
slouken@1352
   126
#undef HAVE_STRNCMP
slouken@1510
   127
#undef HAVE__STRICMP
slouken@1352
   128
#undef HAVE_STRCASECMP
slouken@1512
   129
#undef HAVE__STRNICMP
slouken@1501
   130
#undef HAVE_STRNCASECMP
slouken@1352
   131
#undef HAVE_SSCANF
slouken@1341
   132
#undef HAVE_SNPRINTF
slouken@1341
   133
#undef HAVE_VSNPRINTF
slouken@1501
   134
#undef HAVE_ICONV
slouken@1361
   135
#undef HAVE_SIGACTION
icculus@5576
   136
#undef HAVE_SA_SIGACTION
slouken@1361
   137
#undef HAVE_SETJMP
slouken@1361
   138
#undef HAVE_NANOSLEEP
slouken@1361
   139
#undef HAVE_CLOCK_GETTIME
icculus@3917
   140
#undef HAVE_GETPAGESIZE
slouken@4109
   141
#undef HAVE_MPROTECT
slouken@6218
   142
#undef HAVE_SEM_TIMEDWAIT
slouken@1341
   143
slouken@1361
   144
#else
slouken@1361
   145
/* We may need some replacement for stdarg.h here */
slouken@1361
   146
#include <stdarg.h>
slouken@1341
   147
#endif /* HAVE_LIBC */
slouken@1341
   148
slouken@1353
   149
/* Allow disabling of core subsystems */
slouken@1361
   150
#undef SDL_AUDIO_DISABLED
slouken@1361
   151
#undef SDL_CDROM_DISABLED
slouken@1361
   152
#undef SDL_CPUINFO_DISABLED
slouken@1361
   153
#undef SDL_EVENTS_DISABLED
slouken@1361
   154
#undef SDL_FILE_DISABLED
slouken@1361
   155
#undef SDL_JOYSTICK_DISABLED
slouken@1361
   156
#undef SDL_LOADSO_DISABLED
slouken@1361
   157
#undef SDL_THREADS_DISABLED
slouken@1361
   158
#undef SDL_TIMERS_DISABLED
slouken@1361
   159
#undef SDL_VIDEO_DISABLED
slouken@1361
   160
slouken@1361
   161
/* Enable various audio drivers */
slouken@1361
   162
#undef SDL_AUDIO_DRIVER_ALSA
slouken@1361
   163
#undef SDL_AUDIO_DRIVER_ALSA_DYNAMIC
slouken@1361
   164
#undef SDL_AUDIO_DRIVER_ARTS
slouken@1361
   165
#undef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
slouken@1361
   166
#undef SDL_AUDIO_DRIVER_BAUDIO
slouken@1568
   167
#undef SDL_AUDIO_DRIVER_BSD
slouken@1361
   168
#undef SDL_AUDIO_DRIVER_COREAUDIO
slouken@1361
   169
#undef SDL_AUDIO_DRIVER_DART
slouken@1361
   170
#undef SDL_AUDIO_DRIVER_DC
slouken@1361
   171
#undef SDL_AUDIO_DRIVER_DISK
icculus@1532
   172
#undef SDL_AUDIO_DRIVER_DUMMY
slouken@1361
   173
#undef SDL_AUDIO_DRIVER_DMEDIA
slouken@1361
   174
#undef SDL_AUDIO_DRIVER_DSOUND
icculus@3939
   175
#undef SDL_AUDIO_DRIVER_PULSE
icculus@3939
   176
#undef SDL_AUDIO_DRIVER_PULSE_DYNAMIC
slouken@1361
   177
#undef SDL_AUDIO_DRIVER_ESD
slouken@1361
   178
#undef SDL_AUDIO_DRIVER_ESD_DYNAMIC
slouken@1361
   179
#undef SDL_AUDIO_DRIVER_MINT
slouken@1361
   180
#undef SDL_AUDIO_DRIVER_MMEAUDIO
slouken@1361
   181
#undef SDL_AUDIO_DRIVER_NAS
icculus@4192
   182
#undef SDL_AUDIO_DRIVER_NAS_DYNAMIC
slouken@1361
   183
#undef SDL_AUDIO_DRIVER_OSS
slouken@1361
   184
#undef SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
slouken@1361
   185
#undef SDL_AUDIO_DRIVER_PAUD
slouken@1361
   186
#undef SDL_AUDIO_DRIVER_QNXNTO
icculus@6353
   187
#undef SDL_AUDIO_DRIVER_SNDIO
slouken@1361
   188
#undef SDL_AUDIO_DRIVER_SNDMGR
slouken@1361
   189
#undef SDL_AUDIO_DRIVER_SUNAUDIO
slouken@1361
   190
#undef SDL_AUDIO_DRIVER_WAVEOUT
slouken@1361
   191
slouken@1361
   192
/* Enable various cdrom drivers */
slouken@1361
   193
#undef SDL_CDROM_AIX
slouken@1361
   194
#undef SDL_CDROM_BEOS
slouken@1361
   195
#undef SDL_CDROM_BSDI
slouken@1361
   196
#undef SDL_CDROM_DC
slouken@1361
   197
#undef SDL_CDROM_DUMMY
slouken@1361
   198
#undef SDL_CDROM_FREEBSD
slouken@1361
   199
#undef SDL_CDROM_LINUX
slouken@1361
   200
#undef SDL_CDROM_MACOS
slouken@1361
   201
#undef SDL_CDROM_MACOSX
slouken@1361
   202
#undef SDL_CDROM_MINT
slouken@1361
   203
#undef SDL_CDROM_OPENBSD
slouken@1361
   204
#undef SDL_CDROM_OS2
slouken@1361
   205
#undef SDL_CDROM_OSF
slouken@1361
   206
#undef SDL_CDROM_QNX
slouken@1361
   207
#undef SDL_CDROM_WIN32
slouken@1361
   208
slouken@1361
   209
/* Enable various input drivers */
icculus@4095
   210
#undef SDL_INPUT_LINUXEV
slouken@1361
   211
#undef SDL_INPUT_TSLIB
slouken@1361
   212
#undef SDL_JOYSTICK_BEOS
slouken@1361
   213
#undef SDL_JOYSTICK_DC
slouken@1361
   214
#undef SDL_JOYSTICK_DUMMY
slouken@1361
   215
#undef SDL_JOYSTICK_IOKIT
slouken@1361
   216
#undef SDL_JOYSTICK_LINUX
slouken@1361
   217
#undef SDL_JOYSTICK_MACOS
slouken@1361
   218
#undef SDL_JOYSTICK_MINT
slouken@1361
   219
#undef SDL_JOYSTICK_OS2
slouken@1361
   220
#undef SDL_JOYSTICK_RISCOS
slouken@1361
   221
#undef SDL_JOYSTICK_WINMM
slouken@1361
   222
#undef SDL_JOYSTICK_USBHID
slouken@1565
   223
#undef SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H
slouken@1361
   224
slouken@1361
   225
/* Enable various shared object loading systems */
slouken@1361
   226
#undef SDL_LOADSO_BEOS
slouken@1361
   227
#undef SDL_LOADSO_DLCOMPAT
slouken@1361
   228
#undef SDL_LOADSO_DLOPEN
slouken@1635
   229
#undef SDL_LOADSO_DUMMY
slouken@1361
   230
#undef SDL_LOADSO_LDG
slouken@1361
   231
#undef SDL_LOADSO_MACOS
slouken@1361
   232
#undef SDL_LOADSO_OS2
slouken@1361
   233
#undef SDL_LOADSO_WIN32
slouken@1361
   234
slouken@1361
   235
/* Enable various threading systems */
slouken@1361
   236
#undef SDL_THREAD_BEOS
slouken@1361
   237
#undef SDL_THREAD_DC
slouken@1361
   238
#undef SDL_THREAD_OS2
slouken@1361
   239
#undef SDL_THREAD_PTH
slouken@1361
   240
#undef SDL_THREAD_PTHREAD
slouken@1361
   241
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX
slouken@1361
   242
#undef SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
slouken@1361
   243
#undef SDL_THREAD_SPROC
slouken@1361
   244
#undef SDL_THREAD_WIN32
slouken@1361
   245
slouken@1361
   246
/* Enable various timer systems */
slouken@1361
   247
#undef SDL_TIMER_BEOS
slouken@1361
   248
#undef SDL_TIMER_DC
slouken@1635
   249
#undef SDL_TIMER_DUMMY
slouken@1361
   250
#undef SDL_TIMER_MACOS
slouken@1361
   251
#undef SDL_TIMER_MINT
slouken@1361
   252
#undef SDL_TIMER_OS2
slouken@1361
   253
#undef SDL_TIMER_RISCOS
slouken@1361
   254
#undef SDL_TIMER_UNIX
slouken@1361
   255
#undef SDL_TIMER_WIN32
slouken@1361
   256
#undef SDL_TIMER_WINCE
slouken@1361
   257
slouken@1361
   258
/* Enable various video drivers */
slouken@1361
   259
#undef SDL_VIDEO_DRIVER_AALIB
slouken@1361
   260
#undef SDL_VIDEO_DRIVER_BWINDOW
slouken@4295
   261
#undef SDL_VIDEO_DRIVER_CACA
slouken@1361
   262
#undef SDL_VIDEO_DRIVER_DC
slouken@1361
   263
#undef SDL_VIDEO_DRIVER_DDRAW
slouken@1361
   264
#undef SDL_VIDEO_DRIVER_DGA
slouken@1361
   265
#undef SDL_VIDEO_DRIVER_DIRECTFB
slouken@1361
   266
#undef SDL_VIDEO_DRIVER_DRAWSPROCKET
slouken@1361
   267
#undef SDL_VIDEO_DRIVER_DUMMY
slouken@1361
   268
#undef SDL_VIDEO_DRIVER_FBCON
slouken@1361
   269
#undef SDL_VIDEO_DRIVER_GAPI
slouken@1361
   270
#undef SDL_VIDEO_DRIVER_GEM
slouken@1361
   271
#undef SDL_VIDEO_DRIVER_GGI
slouken@1361
   272
#undef SDL_VIDEO_DRIVER_IPOD
slouken@1361
   273
#undef SDL_VIDEO_DRIVER_NANOX
slouken@1361
   274
#undef SDL_VIDEO_DRIVER_OS2FS
slouken@1361
   275
#undef SDL_VIDEO_DRIVER_PHOTON
slouken@1361
   276
#undef SDL_VIDEO_DRIVER_PICOGUI
slouken@1361
   277
#undef SDL_VIDEO_DRIVER_PS2GS
slouken@4165
   278
#undef SDL_VIDEO_DRIVER_PS3
slouken@1361
   279
#undef SDL_VIDEO_DRIVER_QTOPIA
slouken@1361
   280
#undef SDL_VIDEO_DRIVER_QUARTZ
slouken@1361
   281
#undef SDL_VIDEO_DRIVER_RISCOS
slouken@1361
   282
#undef SDL_VIDEO_DRIVER_SVGALIB
slouken@1361
   283
#undef SDL_VIDEO_DRIVER_TOOLBOX
slouken@1361
   284
#undef SDL_VIDEO_DRIVER_VGL
slouken@1361
   285
#undef SDL_VIDEO_DRIVER_WINDIB
slouken@1361
   286
#undef SDL_VIDEO_DRIVER_WSCONS
slouken@1361
   287
#undef SDL_VIDEO_DRIVER_X11
azamat@7291
   288
#undef SDL_VIDEO_DRIVER_X11_CONST_PARAM_XDATA32
slouken@1361
   289
#undef SDL_VIDEO_DRIVER_X11_DGAMOUSE
slouken@1361
   290
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC
slouken@1361
   291
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT
icculus@1589
   292
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR
icculus@1589
   293
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER
slouken@1361
   294
#undef SDL_VIDEO_DRIVER_X11_VIDMODE
slouken@1361
   295
#undef SDL_VIDEO_DRIVER_X11_XINERAMA
slouken@1361
   296
#undef SDL_VIDEO_DRIVER_X11_XME
icculus@1589
   297
#undef SDL_VIDEO_DRIVER_X11_XRANDR
slouken@1361
   298
#undef SDL_VIDEO_DRIVER_X11_XV
slouken@1361
   299
#undef SDL_VIDEO_DRIVER_XBIOS
slouken@1361
   300
slouken@1361
   301
/* Enable OpenGL support */
slouken@1361
   302
#undef SDL_VIDEO_OPENGL
slouken@1361
   303
#undef SDL_VIDEO_OPENGL_GLX
slouken@1361
   304
#undef SDL_VIDEO_OPENGL_WGL
slouken@1361
   305
#undef SDL_VIDEO_OPENGL_OSMESA
slouken@1361
   306
#undef SDL_VIDEO_OPENGL_OSMESA_DYNAMIC
slouken@1361
   307
slouken@4139
   308
/* Disable screensaver */
slouken@4139
   309
#undef SDL_VIDEO_DISABLE_SCREENSAVER
slouken@4139
   310
slouken@1402
   311
/* Enable assembly routines */
slouken@1402
   312
#undef SDL_ASSEMBLY_ROUTINES
slouken@1361
   313
#undef SDL_HERMES_BLITTERS
slouken@1361
   314
#undef SDL_ALTIVEC_BLITTERS
slouken@1353
   315
slouken@1341
   316
#endif /* _SDL_config_h */