changeset 336:745873ea091f

BeOS compile fix for shared object loading code
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 Apr 2002 17:12:32 +0000
parents bc4d50d2edd9
children 9154ec9ca3d2
files src/SDL_loadso.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_loadso.c	Wed Apr 10 02:14:33 2002 +0000
+++ b/src/SDL_loadso.c	Wed Apr 10 17:12:32 2002 +0000
@@ -173,6 +173,9 @@
 
 void SDL_UnloadObject(void *handle)
 {
+#if defined(__BEOS__)
+	image_id library_id;
+#endif
 	if ( handle == NULL ) {
 		return;
 	}
@@ -184,7 +187,7 @@
 	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)
 /* * */