src/SDL_loadso.c
changeset 651 35ff0890ac4e
parent 336 745873ea091f
child 707 c67d4fb10a45
     1.1 --- a/src/SDL_loadso.c	Sat Jul 12 13:30:30 2003 +0000
     1.2 +++ b/src/SDL_loadso.c	Wed Jul 16 11:54:13 2003 +0000
     1.3 @@ -40,6 +40,9 @@
     1.4  # include <Strings.h>
     1.5  # include <CodeFragments.h>
     1.6  # include <Errors.h>
     1.7 +#elif defined(__MINT__) && defined(ENABLE_LDG)
     1.8 +# include <gem.h>
     1.9 +# include <ldg.h>
    1.10  #else
    1.11  /*#error Unsupported dynamic link environment*/
    1.12  #endif /* system type */
    1.13 @@ -113,6 +116,9 @@
    1.14  	if ( loaderror == NULL ) {
    1.15  		handle = (void *)(library_id);
    1.16  	}
    1.17 +#elif defined(__MINT__) && defined(ENABLE_LDG)
    1.18 +/* * */
    1.19 +	handle = (void *)ldg_open((char *)sofile, ldg_global);
    1.20  #endif /* system type */
    1.21  
    1.22  	if ( handle == NULL ) {
    1.23 @@ -163,6 +169,9 @@
    1.24  	                (char **)&symbol, &class) != noErr ) {
    1.25  		loaderror = "Symbol not found";
    1.26  	}
    1.27 +#elif defined(__MINT__) && defined(ENABLE_LDG)
    1.28 +/* * */
    1.29 +	symbol = (void *)ldg_find((char *)name, (LDG *)handle);
    1.30  #endif /* system type */
    1.31  
    1.32  	if ( symbol == NULL ) {
    1.33 @@ -193,5 +202,8 @@
    1.34  /* * */
    1.35  	CFragConnectionID library_id = (CFragConnectionID)handle;
    1.36  	CloseConnection(library_id);
    1.37 +#elif defined(__MINT__) && defined(ENABLE_LDG)
    1.38 +/* * */
    1.39 +	ldg_close((LDG *)handle, ldg_global);
    1.40  #endif /* system type */
    1.41  }