src/dynapi/SDL_dynapi.h
changeset 8094 9efaae827924
child 8121 1b62b081a83b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/dynapi/SDL_dynapi.h	Mon Dec 09 16:03:18 2013 -0500
     1.3 @@ -0,0 +1,50 @@
     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_dynapi_h
    1.26 +#define _SDL_dynapi_h
    1.27 +
    1.28 +/* IMPORTANT:
    1.29 +   This is the master switch to disabling the dynamic API. We made it so you
    1.30 +   have to hand-edit an internal source file in SDL to turn it off; you
    1.31 +   can do it if you want it badly enough, but hopefully you won't want to.
    1.32 +   You should understand the ramifications of turning this off: it makes it
    1.33 +   hard to update your SDL in the field, and impossible if you've statically
    1.34 +   linked SDL into your app. Understand that platforms change, and if we can't
    1.35 +   drop in an updated SDL, your application can definitely break some time
    1.36 +   in the future, even if it's fine today.
    1.37 +   To be sure, as new system-level video and audio APIs are introduced, an
    1.38 +   updated SDL can transparently take advantage of them, but your program will
    1.39 +   not without this feature. Think hard before turning it off.
    1.40 +*/
    1.41 +#ifdef SDL_DYNAMIC_API  /* Tried to force it on the command line? */
    1.42 +#error Nope, you have to edit this file to force this off.
    1.43 +#endif
    1.44 +
    1.45 +#if defined(__APPLE__) && TARGET_OS_IPHONE  /* probably not useful on iOS. */
    1.46 +#define SDL_DYNAMIC_API 0
    1.47 +#else   /* everyone else. */
    1.48 +#define SDL_DYNAMIC_API 1
    1.49 +#endif
    1.50 +
    1.51 +#endif
    1.52 +
    1.53 +/* vi: set ts=4 sw=4 expandtab: */