diff options
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c index 2e5bd5086..1a675c3c4 100644 --- a/content/content.c +++ b/content/content.c @@ -43,7 +43,9 @@ #include "image/bmp.h" #include "image/ico.h" #endif +#ifdef WITH_NS_SVG #include "image/svg.h" +#endif #ifdef WITH_SPRITE #include "riscos/sprite.h" #endif @@ -134,8 +136,10 @@ static const struct mime_entry mime_map[] = { #ifdef WITH_MNG {"image/png", CONTENT_PNG}, #endif +#ifdef WITH_NS_SVG {"image/svg", CONTENT_SVG}, {"image/svg+xml", CONTENT_SVG}, +#endif #ifdef WITH_BMP {"image/x-bitmap", CONTENT_BMP}, {"image/x-bmp", CONTENT_BMP}, @@ -302,8 +306,10 @@ static const struct handler_entry handler_map[] = { {0, 0, artworks_convert, 0, artworks_destroy, 0, artworks_redraw, 0, 0, 0, false}, #endif +#ifdef WITH_NS_SVG {svg_create, 0, svg_convert, 0, svg_destroy, 0, svg_redraw, 0, 0, 0, false}, +#endif {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false} }; #define HANDLER_MAP_COUNT (sizeof(handler_map) / sizeof(handler_map[0])) |