From b0fdba3f596edb61e8f976ae67ad02d641429525 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 27 Mar 2004 00:54:03 +0000 Subject: [project @ 2004-03-27 00:53:19 by bursa] Add imagemap and jpeg to the debug build. svn path=/import/netsurf/; revision=675 --- content/content.c | 6 ++++-- content/content.h | 8 ++++---- content/content_type.h | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index 9c560326e..337b1276d 100644 --- a/content/content.c +++ b/content/content.c @@ -21,10 +21,10 @@ #include "netsurf/css/css.h" #include "netsurf/render/html.h" #include "netsurf/render/textplain.h" -#ifdef riscos #ifdef WITH_JPEG #include "netsurf/riscos/jpeg.h" #endif +#ifdef riscos #ifdef WITH_PNG #include "netsurf/riscos/png.h" #endif @@ -62,10 +62,12 @@ static const struct mime_entry mime_map[] = { #ifdef WITH_GIF {"image/gif", CONTENT_GIF}, #endif +#endif #ifdef WITH_JPEG {"image/jpeg", CONTENT_JPEG}, {"image/pjpeg", CONTENT_JPEG}, #endif +#ifdef riscos #ifdef WITH_PNG {"image/png", CONTENT_PNG}, #endif @@ -114,11 +116,11 @@ static const struct handler_entry handler_map[] = { 0, 0, 0, 0, 0, 0, 0}, {css_create, 0, css_convert, css_revive, 0, css_destroy, 0, 0, 0, 0}, -#ifdef riscos #ifdef WITH_JPEG {nsjpeg_create, 0, nsjpeg_convert, 0, 0, nsjpeg_destroy, nsjpeg_redraw, 0, 0, 0}, #endif +#ifdef riscos #ifdef WITH_PNG {nspng_create, nspng_process_data, nspng_convert, 0, 0, nspng_destroy, nspng_redraw, 0, 0, 0}, diff --git a/content/content.h b/content/content.h index 48a5c1300..b865e6b4c 100644 --- a/content/content.h +++ b/content/content.h @@ -34,13 +34,13 @@ #include "netsurf/render/box.h" #include "netsurf/render/font.h" #include "netsurf/render/html.h" +#ifdef WITH_JPEG +#include "netsurf/riscos/jpeg.h" +#endif #ifdef riscos #ifdef WITH_GIF #include "netsurf/riscos/gif.h" #endif -#ifdef WITH_JPEG -#include "netsurf/riscos/jpeg.h" -#endif #ifdef WITH_PLUGIN #include "netsurf/riscos/plugin.h" #endif @@ -103,10 +103,10 @@ struct content { union { struct content_html_data html; struct content_css_data css; -#ifdef riscos #ifdef WITH_JPEG struct content_jpeg_data jpeg; #endif +#ifdef riscos #ifdef WITH_PNG struct content_png_data png; #endif diff --git a/content/content_type.h b/content/content_type.h index fbafe9e6b..96fa70575 100644 --- a/content/content_type.h +++ b/content/content_type.h @@ -22,10 +22,10 @@ typedef enum { CONTENT_HTML, CONTENT_TEXTPLAIN, CONTENT_CSS, -#ifdef riscos #ifdef WITH_JPEG CONTENT_JPEG, #endif +#ifdef riscos #ifdef WITH_PNG CONTENT_PNG, #endif -- cgit v1.2.3