diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2020-05-27 18:16:50 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-06-08 21:14:07 +0200 |
commit | 6dcc7bf815c803fe7712e449b3c8fee8f3ab6dda (patch) | |
tree | af00a790454262820503125a0d79f115925326ec /crc32.c | |
parent | f7305d1f82161f249c4acd4eea41e611c4f41cd3 (diff) |
For gzseek, gzoffset, gzopen, adler32_combine, crc32_combine and crc32_combine_gen, export 32-bit and 64-bit versions for zlib-compatible api and only 64-bit version (without 64 suffix) for zlib-ng native api.
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -181,11 +181,13 @@ static uint32_t crc32_combine_(uint32_t crc1, uint32_t crc2, z_off64_t len2) { } /* ========================================================================= */ +#ifdef ZLIB_COMPAT uint32_t ZEXPORT PREFIX(crc32_combine)(uint32_t crc1, uint32_t crc2, z_off_t len2) { return crc32_combine_(crc1, crc2, len2); } +#endif -uint32_t ZEXPORT PREFIX(crc32_combine64)(uint32_t crc1, uint32_t crc2, z_off64_t len2) { +uint32_t ZEXPORT PREFIX4(crc32_combine)(uint32_t crc1, uint32_t crc2, z_off64_t len2) { return crc32_combine_(crc1, crc2, len2); } @@ -266,11 +268,13 @@ static void crc32_combine_gen_(uint32_t *op, z_off64_t len2) { /* ========================================================================= */ +#ifdef ZLIB_COMPAT void ZEXPORT PREFIX(crc32_combine_gen)(uint32_t *op, z_off_t len2) { crc32_combine_gen_(op, len2); } +#endif -void ZEXPORT PREFIX(crc32_combine_gen64)(uint32_t *op, z_off64_t len2) { +void ZEXPORT PREFIX4(crc32_combine_gen)(uint32_t *op, z_off64_t len2) { crc32_combine_gen_(op, len2); } |