src/SDL_loadso.c
author Sam Lantinga
Wed, 01 Feb 2006 06:32:25 +0000
changeset 1312 c9b51268668f
parent 1236 ed252764287a
permissions -rw-r--r--
Updated copyright information and removed rcs id lines (problematic in branch merges)
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    24 /* System dependent library loading routines                           */
    25 
    26 /*
    27  * Mac OS X >= 10.3 are guaranteed to have dlopen support in a system
    28  *  framework, which means we don't have to roll our own on non-PowerPC
    29  *  systems to guarantee compatibility (x86 Macs started at 10.4).   --ryan.
    30  */
    31 #if ( (defined(MACOSX)) && (!defined(__POWERPC__)) )
    32 #  define USE_DLOPEN 1
    33 #endif
    34 
    35 /* !!! FIXME: includes so I don't have to update all the project files... */
    36 #define SDL_INTERNAL_BUILDING_LOADSO 1
    37 #if defined(USE_DUMMY_LOADSO)
    38 # include "loadso/dummy/SDL_loadso.c"
    39 #elif defined(USE_DLOPEN)
    40 # include "loadso/dlopen/SDL_loadso.c"
    41 #elif defined(MACOSX)
    42 # include "loadso/macosx/SDL_loadso.c"
    43 #elif defined(macintosh)
    44 # include "loadso/macos/SDL_loadso.c"
    45 #elif defined(WIN32) || defined(_WIN32_WCE)
    46 # include "loadso/windows/SDL_loadso.c"
    47 #elif defined(__BEOS__)
    48 # include "loadso/beos/SDL_loadso.c"
    49 #elif defined(__MINT__) && defined(ENABLE_LDG)
    50 # include "loadso/mint/SDL_loadso.c"
    51 #elif defined(__OS2__)
    52 # include "loadso/os2/SDL_loadso.c"
    53 #else
    54 # include "loadso/dummy/SDL_loadso.c"
    55 #endif /* system type */
    56