premake/config/SDL_config_minimal.template.h
changeset 7925 f090a47eb7f7
child 8149 681eb46b8ac4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/premake/config/SDL_config_minimal.template.h	Sun Nov 10 00:38:37 2013 -0500
     1.3 @@ -0,0 +1,78 @@
     1.4 +/*
     1.5 +  Simple DirectMedia Layer
     1.6 +  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     1.7 +
     1.8 +  This software is provided 'as-is', without any express or implied
     1.9 +  warranty.  In no event will the authors be held liable for any damages
    1.10 +  arising from the use of this software.
    1.11 +
    1.12 +  Permission is granted to anyone to use this software for any purpose,
    1.13 +  including commercial applications, and to alter it and redistribute it
    1.14 +  freely, subject to the following restrictions:
    1.15 +
    1.16 +  1. The origin of this software must not be misrepresented; you must not
    1.17 +     claim that you wrote the original software. If you use this software
    1.18 +     in a product, an acknowledgment in the product documentation would be
    1.19 +     appreciated but is not required.
    1.20 +  2. Altered source versions must be plainly marked as such, and must not be
    1.21 +     misrepresented as being the original software.
    1.22 +  3. This notice may not be removed or altered from any source distribution.
    1.23 +*/
    1.24 +
    1.25 +#ifndef _SDL_config_minimal_h
    1.26 +#define _SDL_config_minimal_h
    1.27 +
    1.28 +#include "SDL_platform.h"
    1.29 +
    1.30 +/**
    1.31 + *  \file SDL_config_minimal.h
    1.32 + *
    1.33 + *  This is the minimal configuration that can be used to build SDL.
    1.34 + */
    1.35 +
    1.36 +#define HAVE_STDARG_H   1
    1.37 +#define HAVE_STDDEF_H   1
    1.38 +
    1.39 +/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
    1.40 +#if defined(_MSC_VER) && (_MSC_VER < 1600)
    1.41 +/* Here are some reasonable defaults */
    1.42 +typedef unsigned int size_t;
    1.43 +typedef signed char int8_t;
    1.44 +typedef unsigned char uint8_t;
    1.45 +typedef signed short int16_t;
    1.46 +typedef unsigned short uint16_t;
    1.47 +typedef signed int int32_t;
    1.48 +typedef unsigned int uint32_t;
    1.49 +typedef signed long long int64_t;
    1.50 +typedef unsigned long long uint64_t;
    1.51 +typedef unsigned long uintptr_t;
    1.52 +#else
    1.53 +#define HAVE_STDINT_H 1
    1.54 +#endif /* Visual Studio 2008 */
    1.55 +
    1.56 +#ifdef __GNUC__
    1.57 +#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
    1.58 +#endif
    1.59 +
    1.60 +/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
    1.61 +#define SDL_AUDIO_DRIVER_DUMMY  1
    1.62 +
    1.63 +/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
    1.64 +#define SDL_JOYSTICK_DISABLED   1
    1.65 +
    1.66 +/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
    1.67 +#define SDL_HAPTIC_DISABLED 1
    1.68 +
    1.69 +/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
    1.70 +#define SDL_LOADSO_DISABLED 1
    1.71 +
    1.72 +/* Enable the stub thread support (src/thread/generic/\*.c) */
    1.73 +#define SDL_THREADS_DISABLED    1
    1.74 +
    1.75 +/* Enable the stub timer support (src/timer/dummy/\*.c) */
    1.76 +#define SDL_TIMERS_DISABLED 1
    1.77 +
    1.78 +/* Enable the dummy video driver (src/video/dummy/\*.c) */
    1.79 +#define SDL_VIDEO_DRIVER_DUMMY  1
    1.80 +
    1.81 +#endif /* _SDL_config_minimal_h */