summaryrefslogtreecommitdiff
path: root/amiga/misc.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-18 21:11:00 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-18 21:11:00 +0000
commit2eb41ed77b2deb3a1c54c7b6b94a7c31fb603714 (patch)
tree1c93c241db79a2646e701a932a592a2f1b8b5fa4 /amiga/misc.c
parentd6052d3955ffa1aca81c3363b7c53aec51cb6208 (diff)
downloadnetsurf-2eb41ed77b2deb3a1c54c7b6b94a7c31fb603714.tar.gz
netsurf-2eb41ed77b2deb3a1c54c7b6b94a7c31fb603714.tar.bz2
More OS3 fixes
Diffstat (limited to 'amiga/misc.c')
-rwxr-xr-xamiga/misc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/amiga/misc.c b/amiga/misc.c
index 0cd3baedd..73a87e78d 100755
--- a/amiga/misc.c
+++ b/amiga/misc.c
@@ -52,7 +52,7 @@ static LONG ami_misc_req(const char *message, uint32 type)
LONG ret = 0;
LOG(("%s", message));
-
+#ifdef __amigaos4__
ret = TimedDosRequesterTags(
TDR_TitleString, messages_get("NetSurf"),
TDR_FormatString, message,
@@ -60,7 +60,9 @@ static LONG ami_misc_req(const char *message, uint32 type)
TDR_ImageType, type,
TDR_Window, cur_gw ? cur_gw->shared->win : NULL,
TAG_DONE);
-
+#else
+ printf("%s\n", message);
+#endif
return ret;
}
@@ -84,6 +86,7 @@ void warn_user(const char *warning, const char *detail)
int32 ami_warn_user_multi(const char *body, const char *opt1, const char *opt2, struct Window *win)
{
int res = 0;
+#ifdef __amigaos4__
char *utf8text = ami_utf8_easy(body);
char *utf8gadget1 = ami_utf8_easy(messages_get(opt1));
char *utf8gadget2 = ami_utf8_easy(messages_get(opt2));
@@ -100,7 +103,9 @@ int32 ami_warn_user_multi(const char *body, const char *opt1, const char *opt2,
if(utf8text) free(utf8text);
if(utf8gadgets) FreeVec(utf8gadgets);
-
+#else
+#warning write this for os3
+#endif
return res;
}