Add libarchive compat definitions for 3.1.2.
This commit is contained in:
parent
e525e2c251
commit
5471c7f46c
@ -55,6 +55,26 @@
|
||||
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
|
||||
#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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user