From 78dec4d5156d738c0d4901e6761ab9f406d81834 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 26 Jan 2016 00:10:11 +0000 Subject: Show warnings on OS3 with an EasyRequest --- amiga/misc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/amiga/misc.c b/amiga/misc.c index ea888e021..407aec18b 100755 --- a/amiga/misc.c +++ b/amiga/misc.c @@ -22,6 +22,10 @@ #include #include +#ifndef __amigaos4__ +#include // for EasyRequest +#endif + #include "utils/corestrings.h" #include "utils/log.h" #include "utils/file.h" @@ -100,7 +104,15 @@ static LONG ami_misc_req(const char *message, uint32 type) TDR_Window, cur_gw ? cur_gw->shared->win : NULL, TAG_DONE); #else - printf("%s\n", message); + struct EasyStruct easyreq = { + sizeof(struct EasyStruct), + 0, + messages_get("NetSurf"), + message, + messages_get("OK"), + }; + + ret = EasyRequest(cur_gw ? cur_gw->shared->win : NULL, &easyreq, NULL); #endif return ret; } -- cgit v1.2.3