mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 10:42:36 +03:00
Show warnings on OS3 with an EasyRequest
This commit is contained in:
parent
2c2dc0f2bc
commit
78dec4d515
14
amiga/misc.c
14
amiga/misc.c
@ -22,6 +22,10 @@
|
|||||||
#include <proto/exec.h>
|
#include <proto/exec.h>
|
||||||
#include <proto/utility.h>
|
#include <proto/utility.h>
|
||||||
|
|
||||||
|
#ifndef __amigaos4__
|
||||||
|
#include <proto/intuition.h> // for EasyRequest
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "utils/corestrings.h"
|
#include "utils/corestrings.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "utils/file.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,
|
TDR_Window, cur_gw ? cur_gw->shared->win : NULL,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
#else
|
#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
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user