diff options
Diffstat (limited to 'www-client/netsurf/files/netsurf-2.9-conditionally-include-image-headers.patch')
-rw-r--r-- | www-client/netsurf/files/netsurf-2.9-conditionally-include-image-headers.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/www-client/netsurf/files/netsurf-2.9-conditionally-include-image-headers.patch b/www-client/netsurf/files/netsurf-2.9-conditionally-include-image-headers.patch new file mode 100644 index 000000000000..6520c7608a60 --- /dev/null +++ b/www-client/netsurf/files/netsurf-2.9-conditionally-include-image-headers.patch @@ -0,0 +1,63 @@ +From 7abd1c708d894a67617e60c2f85d6db355a713bb Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@aura-online.co.uk> +Date: Sat, 18 Aug 2012 16:10:23 +0100 +Subject: [PATCH] Conditionally include image headers to allow building + without some dependencies. + +--- + image/image.c | 32 +++++++++++++++++++++++++++++--- + 1 files changed, 29 insertions(+), 3 deletions(-) + +diff --git a/image/image.c b/image/image.c +index becf221..70b981b 100644 +--- a/image/image.c ++++ b/image/image.c +@@ -27,16 +27,42 @@ + #include "desktop/plotters.h" + #include "image/bitmap.h" + ++#ifdef WITH_BMP + #include "image/bmp.h" +-#include "image/gif.h" + #include "image/ico.h" ++#endif ++ ++#ifdef WITH_GIF ++#include "image/gif.h" ++#endif ++ ++#ifdef WITH_JPEG + #include "image/jpeg.h" ++#endif ++ ++#ifdef WITH_MNG + #include "image/mng.h" +-#include "image/nssprite.h" ++#endif ++ ++#ifdef WITH_PNG + #include "image/png.h" +-#include "image/rsvg.h" ++#endif ++ ++#ifdef WITH_NSSPRITE ++#include "image/nssprite.h" ++#endif ++ ++#ifdef WITH_NS_SVG + #include "image/svg.h" ++#endif ++ ++#ifdef WITH_RSVG ++#include "image/rsvg.h" ++#endif ++ ++#ifdef WITH_WEBP + #include "image/webp.h" ++#endif + + #include "image/image.h" + +-- +1.7.8.6 + |