1#ifndef LIBARCHIVE_COMPAT_H
2#define LIBARCHIVE_COMPAT_H
25static inline int _alpm_archive_read_free(
struct archive *archive)
27 return archive_read_free(archive);
30static inline int64_t _alpm_archive_compressed_ftell(
struct archive *archive)
32 return archive_filter_bytes(archive, -1);
35static inline int _alpm_archive_read_open_file(
struct archive *archive,
36 const char *filename,
size_t block_size)
38 return archive_read_open_filename(archive, filename, block_size);
41static inline int _alpm_archive_filter_code(
struct archive *archive)
43 return archive_filter_code(archive, 0);
46static inline int _alpm_archive_read_support_filter_all(
struct archive *archive)
48 return archive_read_support_filter_all(archive);