src/SDL_loadso.c
changeset 651 35ff0890ac4e
parent 336 745873ea091f
child 707 c67d4fb10a45
--- 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 */
 }