Skip to content

Commit

Permalink
BeOS compile fix for shared object loading code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 10, 2002
1 parent 5a057e4 commit a17946b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SDL_loadso.c
Expand Up @@ -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;
}
Expand All @@ -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)
/* * */
Expand Down

0 comments on commit a17946b

Please sign in to comment.