summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-01-05 02:10:59 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-01-05 02:10:59 +0000
commit62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 (patch)
tree5bbe5b8a63941c2d3b7f71fc53ceedcbc1d92cd6 /desktop/netsurf.c
parent91e767cdfa11225dd370471892000e107bb06726 (diff)
downloadnetsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.gz
netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.bz2
[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
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r--desktop/netsurf.c7
1 files changed, 7 insertions, 0 deletions
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 <stdbool.h>
#include <stdlib.h>
+#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();
}