summaryrefslogtreecommitdiff
path: root/riscos/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/uri.c')
-rw-r--r--riscos/uri.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/riscos/uri.c b/riscos/uri.c
index 56780563b..aac943f2a 100644
--- a/riscos/uri.c
+++ b/riscos/uri.c
@@ -9,6 +9,7 @@
#include <string.h>
#include "oslib/uri.h"
#include "oslib/wimp.h"
+#include "netsurf/utils/config.h"
#include "netsurf/desktop/browser.h"
#include "netsurf/riscos/theme.h"
#include "netsurf/desktop/gui.h"
@@ -16,6 +17,8 @@
#include "netsurf/utils/log.h"
#include "netsurf/utils/utils.h"
+#ifdef WITH_URI
+
void ro_uri_message_received(uri_full_message_process*);
@@ -55,7 +58,11 @@ void ro_uri_message_received(uri_full_message_process* uri_message)
xuri_request_uri(0, uri_requested, uri_length, uri_handle, NULL);
bw = create_browser_window(browser_TITLE | browser_TOOLBAR
- | browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 640, 480, NULL);
+ | browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 640, 480
+#ifdef WITH_FRAMES
+ , NULL
+#endif
+ );
gui_window_show(bw->window);
browser_window_open_location(bw, uri_requested);
@@ -67,3 +74,4 @@ void ro_uri_message_received(uri_full_message_process* uri_message)
xfree(uri_requested);
}
+#endif