@@ -16,10 +16,19 @@ */ #import "macros.h" #if defined(OF_COMPILING_AMIGA_LIBRARY) || defined(OF_COMPILING_AMIGA_LINKLIB) +# if defined(__MORPHOS__) +# include +# define OF_M68K_ARG(type, name, reg) type name = (type)REG_##reg; +# else +# define OF_M68K_ARG(type, name, reg) \ + register type reg_##name __asm__(#reg); \ + type name = reg_##name; +# endif + struct of_libc { /* * Needed by the runtime. Some of them are also used by ObjFW, but we * need all of them to pass them along to the runtime. */ @@ -61,7 +70,7 @@ const char *_Nonnull restrict, va_list); void (*_Nonnull exit)(int); char *_Nullable (*_Nonnull setlocale)(int, const char *_Nullable); }; -extern bool of_init(unsigned int version, struct of_libc *libc_, FILE *stderr_); +extern bool of_init(unsigned int version, struct of_libc *libc, FILE **sF); #endif