@@ -219,12 +219,19 @@ }; #ifdef __cplusplus extern "C" { #endif -# ifdef OBJC_AMIGA_LIBRARY -# import "ObjFW_RT_inline.h" +# if defined(OBJC_AMIGA_LIBRARY) || defined(OBJC_COMPILING_AMIGA_LINKLIB) +# if defined(__amigaos__) && !defined(__MORPHOS__) && !defined(__amigaos4__) +# define INTUITION_CLASSES_H +# endif +# include +# include "ObjFW_RT_inline.h" +# if defined(__amigaos__) && !defined(__MORPHOS__) && !defined(__amigaos4__) +# undef INTUITION_CLASSES_H +# endif extern struct Library *ObjFWRTBase; # else extern SEL _Nonnull sel_registerName( const char *_Nonnull name OBJC_M68K_REG("a0")); extern const char *_Nonnull sel_getName(SEL _Nonnull sel OBJC_M68K_REG("a0")); @@ -304,10 +311,12 @@ extern IMP _Nonnull objc_msg_lookup_super_stret( struct objc_super *_Nonnull super, SEL _Nonnull sel); extern id _Nullable objc_lookUpClass(const char *_Nonnull name); extern id _Nullable objc_getClass(const char *_Nonnull name); extern id _Nonnull objc_getRequiredClass(const char *_Nonnull name); +extern Class _Nullable objc_lookup_class(const char *_Nonnull name); +extern Class _Nonnull objc_get_class(const char *_Nonnull name); extern void objc_exception_throw(id _Nullable object); extern int objc_sync_enter(id _Nullable object); extern int objc_sync_exit(id _Nullable object); extern id _Nullable objc_getProperty(id _Nonnull self, SEL _Nonnull _cmd, ptrdiff_t offset, bool atomic);