aboutsummaryrefslogtreecommitdiff
path: root/linux/lib/xz
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-05-30 10:00:57 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-05-30 10:00:57 +0300
commit7dabf0ef8731bb9cb001f37a7bfb9146bf2a362c (patch)
treeb31b845f94dec0decff03707fc2579fed95cb0bc /linux/lib/xz
parent0d67d4ea416d6a5832f26c99024f8c29f0ca20dd (diff)
downloadxz-embedded-7dabf0ef8731bb9cb001f37a7bfb9146bf2a362c.tar.gz
Make it simpler to build without BCJ filters.
Now xz_dec_bcj.c can be compiled even when no BCJ filters are enabled (but only if the compiler supports files that don't export any symbols). It also allows #including it unconditionally in decompress_unxz.c.
Diffstat (limited to 'linux/lib/xz')
-rw-r--r--linux/lib/xz/xz_dec_bcj.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/lib/xz/xz_dec_bcj.c b/linux/lib/xz/xz_dec_bcj.c
index f5b25f1..09162b5 100644
--- a/linux/lib/xz/xz_dec_bcj.c
+++ b/linux/lib/xz/xz_dec_bcj.c
@@ -10,6 +10,12 @@
#include "xz_private.h"
+/*
+ * The rest of the file is inside this ifdef. It makes things a little more
+ * convenient when building without support for any BCJ filters.
+ */
+#ifdef XZ_DEC_BCJ
+
struct xz_dec_bcj {
/* Type of the BCJ filter being used */
enum {
@@ -554,3 +560,5 @@ XZ_EXTERN enum xz_ret XZ_FUNC xz_dec_bcj_reset(
return XZ_OK;
}
+
+#endif