src/SDL_loadso.c
author Ryan C. Gordon
Fri, 06 Jan 2006 20:57:59 +0000
changeset 1236 ed252764287a
parent 1190 173c063d4f55
child 1312 c9b51268668f
permissions -rw-r--r--
Minor bit of debug output added to dynamic X11 code.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2004 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Library General Public
     7     License as published by the Free Software Foundation; either
     8     version 2 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     Library General Public License for more details.
    14 
    15     You should have received a copy of the GNU Library General Public
    16     License along with this library; if not, write to the Free
    17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 #ifdef SAVE_RCSID
    24 static char rcsid =
    25  "@(#) $Id$";
    26 #endif
    27 
    28 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    29 /* System dependent library loading routines                           */
    30 
    31 /*
    32  * Mac OS X >= 10.3 are guaranteed to have dlopen support in a system
    33  *  framework, which means we don't have to roll our own on non-PowerPC
    34  *  systems to guarantee compatibility (x86 Macs started at 10.4).   --ryan.
    35  */
    36 #if ( (defined(MACOSX)) && (!defined(__POWERPC__)) )
    37 #  define USE_DLOPEN 1
    38 #endif
    39 
    40 /* !!! FIXME: includes so I don't have to update all the project files... */
    41 #define SDL_INTERNAL_BUILDING_LOADSO 1
    42 #if defined(USE_DUMMY_LOADSO)
    43 # include "loadso/dummy/SDL_loadso.c"
    44 #elif defined(USE_DLOPEN)
    45 # include "loadso/dlopen/SDL_loadso.c"
    46 #elif defined(MACOSX)
    47 # include "loadso/macosx/SDL_loadso.c"
    48 #elif defined(macintosh)
    49 # include "loadso/macos/SDL_loadso.c"
    50 #elif defined(WIN32) || defined(_WIN32_WCE)
    51 # include "loadso/windows/SDL_loadso.c"
    52 #elif defined(__BEOS__)
    53 # include "loadso/beos/SDL_loadso.c"
    54 #elif defined(__MINT__) && defined(ENABLE_LDG)
    55 # include "loadso/mint/SDL_loadso.c"
    56 #elif defined(__OS2__)
    57 # include "loadso/os2/SDL_loadso.c"
    58 #else
    59 # include "loadso/dummy/SDL_loadso.c"
    60 #endif /* system type */
    61