Skip to content

Commit 6febb7d

Browse files
committed
zlib: declare prototypes for new functions
The `crc32_combine_gen64` missed a prototype in our define path. Add one.
1 parent 2db6cdc commit 6febb7d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deps/zlib/crc32.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ local z_crc_t x2nmodp OF((z_off64_t n, unsigned k));
114114
instruction, if one is available. This assumes that word_t is either 32 bits
115115
or 64 bits.
116116
*/
117+
118+
local z_word_t byte_swap(z_word_t word);
119+
117120
local z_word_t byte_swap(word)
118121
z_word_t word;
119122
{
@@ -709,6 +712,9 @@ unsigned long ZEXPORT crc32_z(crc, buf, len)
709712

710713
#ifdef W
711714

715+
local z_crc_t crc_word(z_word_t data);
716+
local z_word_t crc_word_big(z_word_t data);
717+
712718
/*
713719
Return the CRC of the W bytes in the word_t data, taking the
714720
least-significant byte of the word as the first byte of data, without any pre
@@ -1107,7 +1113,7 @@ uLong ZEXPORT crc32_combine_gen(len2)
11071113
}
11081114

11091115
/* ========================================================================= */
1110-
uLong crc32_combine_op(crc1, crc2, op)
1116+
uLong ZEXPORT crc32_combine_op(crc1, crc2, op)
11111117
uLong crc1;
11121118
uLong crc2;
11131119
uLong op;

deps/zlib/zlib.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,8 +1895,11 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
18951895
ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
18961896
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
18971897
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1898+
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
18981899
ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1900+
ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
18991901
ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
1902+
ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t));
19001903
#endif
19011904

19021905
#else /* Z_SOLO */

0 commit comments

Comments
 (0)