diff options
Diffstat (limited to 'amiga/gui.h')
-rwxr-xr-x | amiga/gui.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.h b/amiga/gui.h index 246d75124..adad63d4f 100755 --- a/amiga/gui.h +++ b/amiga/gui.h @@ -28,6 +28,12 @@ #include "amiga/plotters.h" #include "amiga/menu.h" +#ifdef __amigaos4__ +#define HOOKF(ret,func,type,ptr,msgtype) static ret func(struct Hook *hook, type ptr, msgtype msg) +#else +#define HOOKF(ret,func,type,ptr,msgtype) static ASM ret func(REG(a0, struct Hook *hook),REG(a2, type ptr), REG(a1, msgtype msg)) +#endif + enum { OID_MAIN = 0, |