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 --- desktop/netsurf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'desktop/netsurf.c') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index f8a632cde..eaab1491e 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -8,6 +8,7 @@ #include #include +#include "netsurf/utils/config.h" #include "netsurf/content/cache.h" #include "netsurf/content/fetch.h" #include "netsurf/content/fetchcache.h" @@ -55,8 +56,12 @@ void netsurf_init(int argc, char** argv) fetch_init(); cache_init(); fetchcache_init(); +#ifdef WITH_PNG nspng_init(); +#endif +#ifdef WITH_GIF nsgif_init(); +#endif } @@ -79,6 +84,8 @@ void netsurf_exit(void) { cache_quit(); fetch_quit(); +#ifdef WITH_COOKIES clean_cookiejar(); +#endif gui_quit(); } -- cgit v1.2.3