Mercurial > sdl-ios-xcode
diff src/SDL_loadso.c @ 651:35ff0890ac4e
pmandin: Added Atari LDG shared object loader
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 16 Jul 2003 11:54:13 +0000 |
parents | 745873ea091f |
children | c67d4fb10a45 |
line wrap: on
line diff
--- a/src/SDL_loadso.c Sat Jul 12 13:30:30 2003 +0000 +++ b/src/SDL_loadso.c Wed Jul 16 11:54:13 2003 +0000 @@ -40,6 +40,9 @@ # include <Strings.h> # include <CodeFragments.h> # include <Errors.h> +#elif defined(__MINT__) && defined(ENABLE_LDG) +# include <gem.h> +# include <ldg.h> #else /*#error Unsupported dynamic link environment*/ #endif /* system type */ @@ -113,6 +116,9 @@ if ( loaderror == NULL ) { handle = (void *)(library_id); } +#elif defined(__MINT__) && defined(ENABLE_LDG) +/* * */ + handle = (void *)ldg_open((char *)sofile, ldg_global); #endif /* system type */ if ( handle == NULL ) { @@ -163,6 +169,9 @@ (char **)&symbol, &class) != noErr ) { loaderror = "Symbol not found"; } +#elif defined(__MINT__) && defined(ENABLE_LDG) +/* * */ + symbol = (void *)ldg_find((char *)name, (LDG *)handle); #endif /* system type */ if ( symbol == NULL ) { @@ -193,5 +202,8 @@ /* * */ CFragConnectionID library_id = (CFragConnectionID)handle; CloseConnection(library_id); +#elif defined(__MINT__) && defined(ENABLE_LDG) +/* * */ + ldg_close((LDG *)handle, ldg_global); #endif /* system type */ }