Ok, I understand. In case of AROS it is best to use portable macros to make these calls. I'm now writing from memory so there can be bugs:
mod_class =AROS_LC0(void *, AmIDE_API_GetClass,
struct Library *, (AmIDE_API_Base), 5, AmIDE_API );
#include <aros/libcall.h>