summaryrefslogtreecommitdiff
path: root/riscos/filetype.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 /riscos/filetype.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 'riscos/filetype.c')
-rw-r--r--riscos/filetype.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/riscos/filetype.c b/riscos/filetype.c
index d31f4cda1..98c3005bd 100644
--- a/riscos/filetype.c
+++ b/riscos/filetype.c
@@ -9,6 +9,7 @@
#include <string.h>
#include <unixlib/local.h>
#include "oslib/osfile.h"
+#include "netsurf/utils/config.h"
#include "netsurf/content/fetch.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/utils.h"
@@ -19,14 +20,26 @@ struct type_entry {
char mime_type[40];
};
static const struct type_entry type_map[] = {
+#ifdef WITH_PLUGIN
{0x188, "application/x-shockwave-flash"},
+#endif
+#ifdef WITH_GIF
{0x695, "image/gif"},
+#endif
+#ifdef WITH_DRAW
{0xaff, "image/x-drawfile"},
+#endif
+#ifdef WITH_PNG
{0xb60, "image/png"},
+#endif
+#ifdef WITH_JPEG
{0xc85, "image/jpeg"},
+#endif
{0xf79, "text/css"},
{0xfaf, "text/html"},
+#ifdef WITH_SPRITE
{0xff9, "image/x-riscos-sprite"},
+#endif
{0xfff, "text/plain"},
};
#define TYPE_MAP_COUNT (sizeof(type_map) / sizeof(type_map[0]))