include/SDL_config_minimal.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 12:54:59 +0000
changeset 3220 6290f9bd097d
parent 3219 b91354fa65a2
child 3243 5db962a9a991
permissions -rw-r--r--
Better check which includes #define used in stdint.h
slouken@1603
     1
/*
slouken@1603
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@1603
     4
slouken@1603
     5
    This library is free software; you can redistribute it and/or
slouken@1603
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1603
     7
    License as published by the Free Software Foundation; either
slouken@1603
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1603
     9
slouken@1603
    10
    This library is distributed in the hope that it will be useful,
slouken@1603
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1603
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1603
    13
    Lesser General Public License for more details.
slouken@1603
    14
slouken@1603
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1603
    16
    License along with this library; if not, write to the Free Software
slouken@1603
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1603
    18
slouken@1603
    19
    Sam Lantinga
slouken@1603
    20
    slouken@libsdl.org
slouken@1603
    21
*/
slouken@1603
    22
slouken@1603
    23
#ifndef _SDL_config_minimal_h
slouken@1603
    24
#define _SDL_config_minimal_h
slouken@1608
    25
slouken@1608
    26
#include "SDL_platform.h"
slouken@1603
    27
slouken@1603
    28
/* This is the minimal configuration that can be used to build SDL */
slouken@1603
    29
slouken@1603
    30
#include <stdarg.h>
slouken@1603
    31
slouken@3220
    32
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
slouken@1603
    33
typedef signed char int8_t;
slouken@1603
    34
typedef unsigned char uint8_t;
slouken@1603
    35
typedef signed short int16_t;
slouken@1603
    36
typedef unsigned short uint16_t;
slouken@1603
    37
typedef signed int int32_t;
slouken@1603
    38
typedef unsigned int uint32_t;
slouken@1603
    39
typedef unsigned int size_t;
slouken@1603
    40
typedef unsigned long uintptr_t;
slouken@3220
    41
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
slouken@1603
    42
slouken@1603
    43
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
slouken@1603
    44
#define SDL_AUDIO_DRIVER_DUMMY	1
slouken@1603
    45
slouken@1603
    46
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
slouken@1603
    47
#define SDL_CDROM_DISABLED	1
slouken@1603
    48
slouken@1603
    49
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
slouken@1603
    50
#define SDL_JOYSTICK_DISABLED	1
slouken@1603
    51
slouken@2713
    52
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
slouken@2771
    53
#define SDL_HAPTIC_DISABLED	1
slouken@2713
    54
slouken@1603
    55
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
slouken@1603
    56
#define SDL_LOADSO_DISABLED	1
slouken@1603
    57
slouken@1603
    58
/* Enable the stub thread support (src/thread/generic/\*.c) */
slouken@1603
    59
#define SDL_THREADS_DISABLED	1
slouken@1603
    60
slouken@1603
    61
/* Enable the stub timer support (src/timer/dummy/\*.c) */
slouken@1603
    62
#define SDL_TIMERS_DISABLED	1
slouken@1603
    63
slouken@1603
    64
/* Enable the dummy video driver (src/video/dummy/\*.c) */
slouken@1603
    65
#define SDL_VIDEO_DRIVER_DUMMY	1
slouken@1603
    66
slouken@1603
    67
#endif /* _SDL_config_minimal_h */