comparison src/SDL_loadso.c @ 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 f6ffac90895c
children 35ff0890ac4e
comparison
equal deleted inserted replaced
335:bc4d50d2edd9 336:745873ea091f
171 return(symbol); 171 return(symbol);
172 } 172 }
173 173
174 void SDL_UnloadObject(void *handle) 174 void SDL_UnloadObject(void *handle)
175 { 175 {
176 #if defined(__BEOS__)
177 image_id library_id;
178 #endif
176 if ( handle == NULL ) { 179 if ( handle == NULL ) {
177 return; 180 return;
178 } 181 }
179 #if defined(USE_DLOPEN) 182 #if defined(USE_DLOPEN)
180 /* * */ 183 /* * */
182 #elif defined(WIN32) 185 #elif defined(WIN32)
183 /* * */ 186 /* * */
184 FreeLibrary((HMODULE)handle); 187 FreeLibrary((HMODULE)handle);
185 #elif defined(__BEOS__) 188 #elif defined(__BEOS__)
186 /* * */ 189 /* * */
187 image_id library_id = (image_id)handle; 190 library_id = (image_id)handle;
188 unload_add_on(library_id); 191 unload_add_on(library_id);
189 #elif defined(macintosh) 192 #elif defined(macintosh)
190 /* * */ 193 /* * */
191 CFragConnectionID library_id = (CFragConnectionID)handle; 194 CFragConnectionID library_id = (CFragConnectionID)handle;
192 CloseConnection(library_id); 195 CloseConnection(library_id);