summaryrefslogtreecommitdiff
path: root/amiga/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/gui.h')
-rwxr-xr-xamiga/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.h b/amiga/gui.h
index 246d75124..4d8344be6 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) static ASM ret func(REG(a0, struct Hook *hook),REG(a2, type ptr), REG(a1, msgtype msg))
+#endif
+
enum
{
OID_MAIN = 0,