Add libarchive compat definitions for 3.1.2.

This commit is contained in:
Juan RP 2013-02-20 14:52:01 +01:00
parent e525e2c251
commit 5471c7f46c

View File

@ -55,6 +55,26 @@
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#endif #endif
/* libarchive compat */
#if ARCHIVE_VERSION_NUMBER >= 3000000
#define archive_read_support_compression_gzip(x) \
archive_read_support_filter_gzip(x)
#define archive_read_support_compression_bzip2(x) \
archive_read_support_filter_bzip2(x)
#define archive_read_support_compression_xz(x) \
archive_read_support_filter_xz(x)
#define archive_read_finish(x) \
archive_read_free(x)
#define archive_compression_name(x) \
archive_filter_name(x, 0)
#endif
__BEGIN_DECLS __BEGIN_DECLS
/** /**