summaryrefslogtreecommitdiff
path: root/amiga/misc.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-20 20:03:55 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-01-20 20:03:55 +0000
commitd0f7247ea67491b4bfae28cb90538b68c6f83d70 (patch)
tree5a11197792c9d5a1279b38c5d24acdfa4b9dfa85 /amiga/misc.c
parent65ab38fc1c26bed356fc61dd4adfe1f0495fab65 (diff)
parent2b9df1b2cd30e394ebb4e9be721b7d219c4e418c (diff)
downloadnetsurf-d0f7247ea67491b4bfae28cb90538b68c6f83d70.tar.gz
netsurf-d0f7247ea67491b4bfae28cb90538b68c6f83d70.tar.bz2
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
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;
}