BeOS compile fix for shared object loading code

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40337
This commit is contained in:
Sam Lantinga 2002-04-10 17:12:32 +00:00
parent 5eb3e3c1c5
commit 16d7ff7c9c

View file

@ -173,6 +173,9 @@ void *SDL_LoadFunction(void *handle, const char *name)
void SDL_UnloadObject(void *handle)
{
#if defined(__BEOS__)
image_id library_id;
#endif
if ( handle == NULL ) {
return;
}
@ -184,7 +187,7 @@ void SDL_UnloadObject(void *handle)
FreeLibrary((HMODULE)handle);
#elif defined(__BEOS__)
/* * */
image_id library_id = (image_id)handle;
library_id = (image_id)handle;
unload_add_on(library_id);
#elif defined(macintosh)
/* * */