diff options
Diffstat (limited to 'include/unarchive.h')
-rw-r--r-- | include/unarchive.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/unarchive.h b/include/unarchive.h index 9d4f1fa40..682e810d5 100644 --- a/include/unarchive.h +++ b/include/unarchive.h | |||
@@ -125,24 +125,24 @@ typedef struct inflate_unzip_result { | |||
125 | uint32_t crc; | 125 | uint32_t crc; |
126 | } inflate_unzip_result; | 126 | } inflate_unzip_result; |
127 | 127 | ||
128 | USE_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; | 128 | IF_DESKTOP(long long) int inflate_unzip(inflate_unzip_result *res, off_t compr_size, int src_fd, int dst_fd) FAST_FUNC; |
129 | /* lzma unpacker takes .lzma stream from offset 0 */ | 129 | /* lzma unpacker takes .lzma stream from offset 0 */ |
130 | USE_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; | 130 | IF_DESKTOP(long long) int unpack_lzma_stream(int src_fd, int dst_fd) FAST_FUNC; |
131 | /* the rest wants 2 first bytes already skipped by the caller */ | 131 | /* the rest wants 2 first bytes already skipped by the caller */ |
132 | USE_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd) FAST_FUNC; | 132 | IF_DESKTOP(long long) int unpack_bz2_stream(int src_fd, int dst_fd) FAST_FUNC; |
133 | USE_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd) FAST_FUNC; | 133 | IF_DESKTOP(long long) int unpack_gz_stream(int src_fd, int dst_fd) FAST_FUNC; |
134 | USE_DESKTOP(long long) int unpack_gz_stream_with_info(int src_fd, int dst_fd, unpack_info_t *info) FAST_FUNC; | 134 | IF_DESKTOP(long long) int unpack_gz_stream_with_info(int src_fd, int dst_fd, unpack_info_t *info) FAST_FUNC; |
135 | USE_DESKTOP(long long) int unpack_Z_stream(int fd_in, int fd_out) FAST_FUNC; | 135 | IF_DESKTOP(long long) int unpack_Z_stream(int fd_in, int fd_out) FAST_FUNC; |
136 | /* wrapper which checks first two bytes to be "BZ" */ | 136 | /* wrapper which checks first two bytes to be "BZ" */ |
137 | USE_DESKTOP(long long) int unpack_bz2_stream_prime(int src_fd, int dst_fd) FAST_FUNC; | 137 | IF_DESKTOP(long long) int unpack_bz2_stream_prime(int src_fd, int dst_fd) FAST_FUNC; |
138 | 138 | ||
139 | int bbunpack(char **argv, | 139 | int bbunpack(char **argv, |
140 | char* (*make_new_name)(char *filename), | 140 | char* (*make_new_name)(char *filename), |
141 | USE_DESKTOP(long long) int (*unpacker)(unpack_info_t *info)) FAST_FUNC; | 141 | IF_DESKTOP(long long) int (*unpacker)(unpack_info_t *info)) FAST_FUNC; |
142 | 142 | ||
143 | #if BB_MMU | 143 | #if BB_MMU |
144 | void open_transformer(int fd, | 144 | void open_transformer(int fd, |
145 | USE_DESKTOP(long long) int FAST_FUNC (*transformer)(int src_fd, int dst_fd)) FAST_FUNC; | 145 | IF_DESKTOP(long long) int FAST_FUNC (*transformer)(int src_fd, int dst_fd)) FAST_FUNC; |
146 | #define open_transformer(fd, transformer, transform_prog) open_transformer(fd, transformer) | 146 | #define open_transformer(fd, transformer, transform_prog) open_transformer(fd, transformer) |
147 | #else | 147 | #else |
148 | void open_transformer(int src_fd, const char *transform_prog) FAST_FUNC; | 148 | void open_transformer(int src_fd, const char *transform_prog) FAST_FUNC; |