src/loadso/dummy/SDL_sysloadso.c
author Sam Lantinga <slouken@libsdl.org>
Fri, 14 Apr 2006 04:46:47 +0000
changeset 1635 92947e3a18db
parent 1422 d2ee8da60262
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
permissions -rw-r--r--
Make sure code is only compiled if the appropriate subsystem is enabled
slouken@1361
     1
/*
slouken@1361
     2
    SDL - Simple DirectMedia Layer
slouken@1361
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1361
     4
slouken@1361
     5
    This library is free software; you can redistribute it and/or
slouken@1361
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1361
     7
    License as published by the Free Software Foundation; either
slouken@1361
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1361
     9
slouken@1361
    10
    This library is distributed in the hope that it will be useful,
slouken@1361
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1361
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1361
    13
    Lesser General Public License for more details.
slouken@1361
    14
slouken@1361
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1361
    16
    License along with this library; if not, write to the Free Software
slouken@1361
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1361
    18
slouken@1361
    19
    Sam Lantinga
slouken@1361
    20
    slouken@libsdl.org
slouken@1361
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@1361
    23
slouken@1635
    24
#if defined(SDL_LOADSO_DUMMY) || defined(SDL_LOADSO_DISABLED)
slouken@1635
    25
slouken@1361
    26
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
slouken@1361
    27
/* System dependent library loading routines                           */
slouken@1361
    28
slouken@1361
    29
#include "SDL_loadso.h"
slouken@1361
    30
slouken@1361
    31
void *SDL_LoadObject(const char *sofile)
slouken@1361
    32
{
slouken@1361
    33
	const char *loaderror = "SDL_LoadObject() not implemented";
slouken@1361
    34
	SDL_SetError("Failed loading %s: %s", sofile, loaderror);
slouken@1361
    35
	return(NULL);
slouken@1361
    36
}
slouken@1361
    37
slouken@1361
    38
void *SDL_LoadFunction(void *handle, const char *name)
slouken@1361
    39
{
slouken@1422
    40
	const char *loaderror = "SDL_LoadFunction() not implemented";
slouken@1361
    41
	SDL_SetError("Failed loading %s: %s", name, loaderror);
slouken@1361
    42
	return(NULL);
slouken@1361
    43
}
slouken@1361
    44
slouken@1361
    45
void SDL_UnloadObject(void *handle)
slouken@1361
    46
{
slouken@1361
    47
    /* no-op. */
slouken@1361
    48
}
slouken@1361
    49
slouken@1635
    50
#endif /* SDL_LOADSO_DUMMY || SDL_LOADSO_DISABLED */