63 lines
1.2 KiB
Diff
63 lines
1.2 KiB
Diff
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
|
|
|