diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-01-26 00:10:11 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-01-26 00:10:11 +0000 |
commit | 78dec4d5156d738c0d4901e6761ab9f406d81834 (patch) | |
tree | d6ebbe108726b739911341a2bd5345198bfd2b10 | |
parent | 2c2dc0f2bc19efde7266edeb98978a22088766ed (diff) | |
download | netsurf-78dec4d5156d738c0d4901e6761ab9f406d81834.tar.gz netsurf-78dec4d5156d738c0d4901e6761ab9f406d81834.tar.bz2 |
Show warnings on OS3 with an EasyRequest
-rwxr-xr-x | amiga/misc.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 <proto/exec.h> #include <proto/utility.h> +#ifndef __amigaos4__ +#include <proto/intuition.h> // 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; } |