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