From 5b0ad574b68b21ceef4ea167163c0a10d1d13d71 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 21 Jan 2010 23:48:34 +0000 Subject: Fix compilation when BMP/PNG/GIF support is disabled. svn path=/trunk/netsurf/; revision=9858 --- desktop/searchweb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/searchweb.c b/desktop/searchweb.c index 69ef10d05..bc0f71ad4 100644 --- a/desktop/searchweb.c +++ b/desktop/searchweb.c @@ -270,10 +270,13 @@ void search_web_ico_callback(content_msg msg, struct content *ico, case CONTENT_MSG_DONE: LOG(("got favicon '%s'", ico->url)); +#ifdef WITH_BMP if (ico->type == CONTENT_ICO) { search_ico = ico; /* cache */ gui_window_set_search_ico(search_ico); - } else { + } else +#endif + { search_web_retrieve_ico(true); } break; -- cgit v1.2.3