From 62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 5 Jan 2004 02:10:59 +0000 Subject: [project @ 2004-01-05 02:10:59 by jmb] Add ability to turn off browser features in build. This may be useful when hunting down bugs. svn path=/import/netsurf/; revision=480 --- riscos/uri.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'riscos/uri.c') 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 #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 -- cgit v1.2.3