From a17946bf3ee8b42d6399c17a509648ca4d3b85d0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 10 Apr 2002 17:12:32 +0000 Subject: [PATCH] BeOS compile fix for shared object loading code --- src/SDL_loadso.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SDL_loadso.c b/src/SDL_loadso.c index e08bbc1e1..542483c95 100644 --- a/src/SDL_loadso.c +++ b/src/SDL_loadso.c @@ -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) /* * */