include/SDL_config.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 08 Mar 2006 08:30:17 +0000
changeset 1484 b2b476a4a73c
parent 1442 e3242177fe4a
child 1532 30f189cdd82b
permissions -rw-r--r--
Added documentation on how to build a completely useless SDL library. :)
slouken@1361
     1
/*
slouken@1361
     2
    SDL - Simple DirectMedia Layer
slouken@1361
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1361
     4
slouken@1361
     5
    This library is free software; you can redistribute it and/or
slouken@1361
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1361
     7
    License as published by the Free Software Foundation; either
slouken@1361
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1361
     9
slouken@1361
    10
    This library is distributed in the hope that it will be useful,
slouken@1361
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1361
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1361
    13
    Lesser General Public License for more details.
slouken@1361
    14
slouken@1361
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1361
    16
    License along with this library; if not, write to the Free Software
slouken@1361
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1361
    18
slouken@1361
    19
    Sam Lantinga
slouken@1361
    20
    slouken@libsdl.org
slouken@1361
    21
*/
slouken@1361
    22
slouken@1361
    23
#ifndef _SDL_config_h
slouken@1361
    24
#define _SDL_config_h
slouken@1361
    25
slouken@1422
    26
#include "SDL_platform.h"
slouken@1361
    27
slouken@1425
    28
/* Add any platform that doesn't build using the configure system */
slouken@1425
    29
#if defined(__AMIGA__)
slouken@1425
    30
#include "SDL_config_amiga.h"
slouken@1425
    31
#elif defined(__DREAMCAST__)
slouken@1425
    32
#include "SDL_config_dreamcast.h"
slouken@1425
    33
#elif defined(__MACOS__)
slouken@1425
    34
#include "SDL_config_macos.h"
slouken@1425
    35
#elif defined(__MACOSX__)
slouken@1425
    36
#include "SDL_config_macosx.h"
slouken@1425
    37
#elif defined(__WIN32__)
slouken@1425
    38
#include "SDL_config_win32.h"
slouken@1442
    39
#elif defined(__OS2__)
slouken@1442
    40
#include "SDL_config_os2.h"
slouken@1422
    41
#else
slouken@1425
    42
/* This is the minimal configuration that can be used to build SDL */
slouken@1402
    43
slouken@1425
    44
#include <stdarg.h>
slouken@1424
    45
slouken@1425
    46
typedef signed char int8_t;
slouken@1425
    47
typedef unsigned char uint8_t;
slouken@1425
    48
typedef signed short int16_t;
slouken@1425
    49
typedef unsigned short uint16_t;
slouken@1425
    50
typedef signed int int32_t;
slouken@1425
    51
typedef unsigned int uint32_t;
slouken@1425
    52
typedef unsigned int size_t;
slouken@1425
    53
typedef unsigned long uintptr_t;
slouken@1484
    54
slouken@1484
    55
/* Enable the disk audio driver (src/audio/disk/\*.c) */
slouken@1484
    56
#define SDL_AUDIO_DRIVER_DISK	1
slouken@1484
    57
slouken@1484
    58
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
slouken@1484
    59
#define SDL_CDROM_DISABLED	1
slouken@1484
    60
slouken@1484
    61
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
slouken@1484
    62
#define SDL_JOYSTICK_DISABLED	1
slouken@1484
    63
slouken@1484
    64
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
slouken@1484
    65
#define SDL_LOADSO_DISABLED	1
slouken@1484
    66
slouken@1484
    67
/* Enable the stub thread support (src/thread/generic/\*.c) */
slouken@1484
    68
#define SDL_THREADS_DISABLED	1
slouken@1484
    69
slouken@1484
    70
/* Enable the stub timer support (src/timer/dummy/\*.c) */
slouken@1484
    71
#define SDL_TIMERS_DISABLED	1
slouken@1484
    72
slouken@1484
    73
/* Enable the dummy video driver (src/video/dummy/\*.c) */
slouken@1484
    74
#define SDL_VIDEO_DRIVER_DUMMY	1
slouken@1484
    75
slouken@1484
    76
#endif /* platform config */
slouken@1361
    77
slouken@1361
    78
#endif /* _SDL_config_h */