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/filetype.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'riscos/filetype.c') 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 #include #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])) -- cgit v1.2.3