include/SDL_config_minimal.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 12 Mar 2011 13:21:57 -0800
changeset 5481 22dfc3958dc3
parent 5262 b530ef003506
child 5512 56ab281d7d3e
permissions -rw-r--r--
Fixed so code will compile with SDL_config_minimal.h
slouken@1603
     1
/*
slouken@1603
     2
    SDL - Simple DirectMedia Layer
slouken@5262
     3
    Copyright (C) 1997-2011 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@3407
    28
/**
slouken@3407
    29
 *  \file SDL_config_minimal.h
slouken@3407
    30
 *  
slouken@3407
    31
 *  This is the minimal configuration that can be used to build SDL.
slouken@3407
    32
 */
slouken@1603
    33
slouken@5481
    34
#include <stddef.h>
slouken@1603
    35
#include <stdarg.h>
slouken@1603
    36
slouken@3220
    37
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
slouken@5481
    38
typedef unsigned int size_t;
slouken@1603
    39
typedef signed char int8_t;
slouken@1603
    40
typedef unsigned char uint8_t;
slouken@1603
    41
typedef signed short int16_t;
slouken@1603
    42
typedef unsigned short uint16_t;
slouken@1603
    43
typedef signed int int32_t;
slouken@1603
    44
typedef unsigned int uint32_t;
slouken@5481
    45
typedef signed long long int64_t;
slouken@5481
    46
typedef unsigned long long uint64_t;
slouken@1603
    47
typedef unsigned long uintptr_t;
slouken@3220
    48
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
slouken@1603
    49
slouken@5481
    50
#define SDL_HAS_64BIT_TYPE
slouken@5481
    51
#ifdef __GNUC__
slouken@5481
    52
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
slouken@5481
    53
#endif
slouken@5481
    54
slouken@1603
    55
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
slouken@1603
    56
#define SDL_AUDIO_DRIVER_DUMMY	1
slouken@1603
    57
slouken@1603
    58
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
slouken@1603
    59
#define SDL_JOYSTICK_DISABLED	1
slouken@1603
    60
slouken@2713
    61
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
slouken@2771
    62
#define SDL_HAPTIC_DISABLED	1
slouken@2713
    63
slouken@1603
    64
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
slouken@1603
    65
#define SDL_LOADSO_DISABLED	1
slouken@1603
    66
slouken@1603
    67
/* Enable the stub thread support (src/thread/generic/\*.c) */
slouken@1603
    68
#define SDL_THREADS_DISABLED	1
slouken@1603
    69
slouken@1603
    70
/* Enable the stub timer support (src/timer/dummy/\*.c) */
slouken@1603
    71
#define SDL_TIMERS_DISABLED	1
slouken@1603
    72
slouken@1603
    73
/* Enable the dummy video driver (src/video/dummy/\*.c) */
slouken@1603
    74
#define SDL_VIDEO_DRIVER_DUMMY	1
slouken@1603
    75
slouken@1603
    76
#endif /* _SDL_config_minimal_h */