@@ -31,15 +31,10 @@ #include "unistd_wrapper.h" #include "platform.h" #ifdef OF_AMIGAOS -# ifdef OF_AMIGAOS4 -# define __USE_INLINE__ -# define __NOLIBBASE__ -# define __NOGLOBALIFACE__ -# endif # include # include #endif #ifdef OF_WII @@ -89,25 +84,10 @@ # import "atomic.h" #endif #ifdef OF_DJGPP # define lrint(x) rint(x) -#endif - -#ifdef OF_AMIGAOS4 -extern struct ExecIFace *IExec; -static struct Library *DOSBase = NULL; -static struct DOSIFace *IDOS = NULL; - -OF_DESTRUCTOR() -{ - if (IDOS != NULL) - DropInterface((struct Interface *)IDOS); - - if (DOSBase != NULL) - CloseLibrary(DOSBase); -} #endif #if defined(OF_HAVE_THREADS) # import "tlskey.h" @@ -208,25 +188,10 @@ if (thread->_threadDictionary == nil) thread->_threadDictionary = [[OFMutableDictionary alloc] init]; return thread->_threadDictionary; } -#elif defined(OF_AMIGAOS4) -+ (void)initialize -{ - if (self != [OFThread class]) - return; - - if ((DOSBase = OpenLibrary("dos.library", 36)) == NULL) - @throw [OFInitializationFailedException - exceptionWithClass: self]; - - if ((IDOS = (struct DOSIFace *) - GetInterface(DOSBase, "main", 1, NULL)) == NULL) - @throw [OFInitializationFailedException - exceptionWithClass: self]; -} #endif #ifdef OF_HAVE_SOCKETS + (OFDNSResolver *)DNSResolver {