BeOS compile fix for shared object loading code

This commit is contained in:
Sam Lantinga 2002-04-10 17:12:32 +00:00
parent d77daf9ae5
commit 4c44aed618

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)
/* * */