include/SDL_config.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 14 Mar 2006 16:19:32 +0000
changeset 1533 38c1eb6b0083
parent 1532 30f189cdd82b
child 1575 3ba88cb7eb1b
permissions -rw-r--r--
By default all the real targets have dummy audio/video and disk audio.
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@1422
    27
slouken@1533
    28
/* Add any platform that doesn't build using the configure system */
slouken@1533
    29
#if defined(__AMIGA__)
slouken@1533
    30
#include "SDL_config_amiga.h"
slouken@1533
    31
#elif defined(__DREAMCAST__)
slouken@1533
    32
#include "SDL_config_dreamcast.h"
slouken@1533
    33
#elif defined(__MACOS__)
slouken@1533
    34
#include "SDL_config_macos.h"
slouken@1533
    35
#elif defined(__MACOSX__)
slouken@1533
    36
#include "SDL_config_macosx.h"
slouken@1533
    37
#elif defined(__WIN32__)
slouken@1533
    38
#include "SDL_config_win32.h"
slouken@1533
    39
#elif defined(__OS2__)
slouken@1533
    40
#include "SDL_config_os2.h"
slouken@1533
    41
#else
slouken@1533
    42
/* This is the minimal configuration that can be used to build SDL */
icculus@1532
    43
slouken@1533
    44
#include <stdarg.h>
icculus@1532
    45
slouken@1533
    46
typedef signed char int8_t;
slouken@1533
    47
typedef unsigned char uint8_t;
slouken@1533
    48
typedef signed short int16_t;
slouken@1533
    49
typedef unsigned short uint16_t;
slouken@1533
    50
typedef signed int int32_t;
slouken@1533
    51
typedef unsigned int uint32_t;
slouken@1533
    52
typedef unsigned int size_t;
slouken@1533
    53
typedef unsigned long uintptr_t;
icculus@1532
    54
slouken@1533
    55
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
slouken@1533
    56
#define SDL_AUDIO_DRIVER_DUMMY	1
icculus@1532
    57
slouken@1533
    58
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
slouken@1533
    59
#define SDL_CDROM_DISABLED	1
icculus@1532
    60
slouken@1533
    61
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
slouken@1533
    62
#define SDL_JOYSTICK_DISABLED	1
icculus@1532
    63
slouken@1533
    64
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
slouken@1533
    65
#define SDL_LOADSO_DISABLED	1
slouken@1424
    66
slouken@1533
    67
/* Enable the stub thread support (src/thread/generic/\*.c) */
slouken@1533
    68
#define SDL_THREADS_DISABLED	1
slouken@1424
    69
slouken@1533
    70
/* Enable the stub timer support (src/timer/dummy/\*.c) */
slouken@1533
    71
#define SDL_TIMERS_DISABLED	1
slouken@1484
    72
slouken@1533
    73
/* Enable the dummy video driver (src/video/dummy/\*.c) */
slouken@1533
    74
#define SDL_VIDEO_DRIVER_DUMMY	1
slouken@1484
    75
slouken@1533
    76
#endif /* platform config */
slouken@1361
    77
slouken@1361
    78
#endif /* _SDL_config_h */