include/SDL_config_minimal.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 29 Oct 2017 21:09:09 -0700
changeset 11660 2119394cbc86
parent 10903 875e0bb9646c
child 11811 5d94cb6b24d3
permissions -rw-r--r--
Fixed Java string comparison with ""
     1 /*
     2   Simple DirectMedia Layer
     3   Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
     4 
     5   This software is provided 'as-is', without any express or implied
     6   warranty.  In no event will the authors be held liable for any damages
     7   arising from the use of this software.
     8 
     9   Permission is granted to anyone to use this software for any purpose,
    10   including commercial applications, and to alter it and redistribute it
    11   freely, subject to the following restrictions:
    12 
    13   1. The origin of this software must not be misrepresented; you must not
    14      claim that you wrote the original software. If you use this software
    15      in a product, an acknowledgment in the product documentation would be
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    21 
    22 #ifndef SDL_config_minimal_h_
    23 #define SDL_config_minimal_h_
    24 #define SDL_config_h_
    25 
    26 #include "SDL_platform.h"
    27 
    28 /**
    29  *  \file SDL_config_minimal.h
    30  *
    31  *  This is the minimal configuration that can be used to build SDL.
    32  */
    33 
    34 #define HAVE_STDARG_H   1
    35 #define HAVE_STDDEF_H   1
    36 
    37 /* Most everything except Visual Studio 2008 and earlier has stdint.h now */
    38 #if defined(_MSC_VER) && (_MSC_VER < 1600)
    39 /* Here are some reasonable defaults */
    40 typedef unsigned int size_t;
    41 typedef signed char int8_t;
    42 typedef unsigned char uint8_t;
    43 typedef signed short int16_t;
    44 typedef unsigned short uint16_t;
    45 typedef signed int int32_t;
    46 typedef unsigned int uint32_t;
    47 typedef signed long long int64_t;
    48 typedef unsigned long long uint64_t;
    49 typedef unsigned long uintptr_t;
    50 #else
    51 #define HAVE_STDINT_H 1
    52 #endif /* Visual Studio 2008 */
    53 
    54 #ifdef __GNUC__
    55 #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
    56 #endif
    57 
    58 /* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    59 #define SDL_AUDIO_DRIVER_DUMMY  1
    60 
    61 /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
    62 #define SDL_JOYSTICK_DISABLED   1
    63 
    64 /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
    65 #define SDL_HAPTIC_DISABLED 1
    66 
    67 /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    68 #define SDL_LOADSO_DISABLED 1
    69 
    70 /* Enable the stub thread support (src/thread/generic/\*.c) */
    71 #define SDL_THREADS_DISABLED    1
    72 
    73 /* Enable the stub timer support (src/timer/dummy/\*.c) */
    74 #define SDL_TIMERS_DISABLED 1
    75 
    76 /* Enable the dummy video driver (src/video/dummy/\*.c) */
    77 #define SDL_VIDEO_DRIVER_DUMMY  1
    78 
    79 /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
    80 #define SDL_FILESYSTEM_DUMMY  1
    81 
    82 #endif /* SDL_config_minimal_h_ */