summaryrefslogtreecommitdiff
path: root/riscos/filetype.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-09-13 23:59:30 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-09-13 23:59:30 +0000
commitb74184c2476b5c3559f744ae9ddd36c702657a95 (patch)
treef461cfd43d94d609494a208f2503f0f795ace6e2 /riscos/filetype.c
parent8f9221c6ca943606872c53d6abae5e03431ea56f (diff)
downloadnetsurf-b74184c2476b5c3559f744ae9ddd36c702657a95.tar.gz
netsurf-b74184c2476b5c3559f744ae9ddd36c702657a95.tar.bz2
[project @ 2004-09-13 23:59:30 by jmb]
Add some #defines svn path=/import/netsurf/; revision=1276
Diffstat (limited to 'riscos/filetype.c')
-rw-r--r--riscos/filetype.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/riscos/filetype.c b/riscos/filetype.c
index 039d26348..5ce3dd0e5 100644
--- a/riscos/filetype.c
+++ b/riscos/filetype.c
@@ -13,6 +13,7 @@
#include "netsurf/content/content.h"
#include "netsurf/content/fetch.h"
#include "netsurf/riscos/gui.h"
+#include "netsurf/utils/config.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/utils.h"
@@ -124,14 +125,26 @@ int ro_content_filetype(struct content *content)
switch (content->type) {
case CONTENT_HTML: return 0xfaf;
case CONTENT_TEXTPLAIN: return 0xfff;
- case CONTENT_MNG: return 0xf84;
case CONTENT_CSS: return 0xf79;
+#ifdef WITH_MNG
case CONTENT_JNG: return 0xf78;
+ case CONTENT_MNG: return 0xf84;
+#endif
+#ifdef WITH_JPEG
case CONTENT_JPEG: return 0xc85;
+#endif
+#ifdef WITH_PNG
case CONTENT_PNG: return 0xb60;
+#endif
+#ifdef WITH_GIF
case CONTENT_GIF: return 0x695;
+#endif
+#ifdef WITH_SPRITE
case CONTENT_SPRITE: return 0xff9;
+#endif
+#ifdef WITH_DRAW
case CONTENT_DRAW: return 0xaff;
+#endif
default: break;
}