From 201bc569a4f40b1b2e53660cceb183570534b557 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 18 Jan 2015 23:13:32 +0000 Subject: More OS3 compilation fixes --- amiga/schedule.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'amiga/schedule.c') diff --git a/amiga/schedule.c b/amiga/schedule.c index 93389a8d9..494b8b027 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -297,18 +297,22 @@ static struct MsgPort *ami_schedule_open_timer(struct MsgPort *msgport) ASO_NoTrack, FALSE, TAG_DONE); } - +#ifdef __amigaos4__ tioreq = (struct TimeRequest *)AllocSysObjectTags(ASOT_IOREQUEST, ASOIOR_Size,sizeof(struct TimeRequest), ASOIOR_ReplyPort,msgport, ASO_NoTrack,FALSE, TAG_DONE); +#else + tioreq = (struct TimeRequest *)CreateIORequest(msgport, sizeof(struct TimeRequest)); +#endif OpenDevice("timer.device", UNIT_WAITUNTIL, (struct IORequest *)tioreq, 0); TimerBase = (struct Device *)tioreq->Request.io_Device; +#ifdef __amigaos4__ ITimer = (struct TimerIFace *)GetInterface((struct Library *)TimerBase, "main", 1, NULL); - +#endif return msgport; } -- cgit v1.2.3