1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* ptlibzippy_pngshim.c -- libpng-specific zlib symbol shims
* Copyright (C) 2026 Project Tick
* For conditions of distribution and use, see copyright notice in ptlibzippy.h
*/
#include "ptzippyguts.h"
uLong ZEXPORT ptpng_adler32(uLong adler, const Bytef *buf, uInt len) {
return adler32(adler, buf, len);
}
uLong ZEXPORT ptpng_crc32(uLong crc, const Bytef *buf, uInt len) {
return crc32(crc, buf, len);
}
int ZEXPORT ptpng_deflate(z_streamp strm, int flush) {
return deflate(strm, flush);
}
int ZEXPORT ptpng_deflateInit2_(z_streamp strm, int level, int method,
int windowBits, int memLevel, int strategy,
const char *version, int stream_size) {
return deflateInit2_(strm, level, method, windowBits, memLevel, strategy,
version, stream_size);
}
int ZEXPORT ptpng_deflateReset(z_streamp strm) {
return deflateReset(strm);
}
int ZEXPORT ptpng_inflate(z_streamp strm, int flush) {
return inflate(strm, flush);
}
int ZEXPORT ptpng_inflateInit2_(z_streamp strm, int windowBits,
const char *version, int stream_size) {
return inflateInit2_(strm, windowBits, version, stream_size);
}
int ZEXPORT ptpng_inflateReset(z_streamp strm) {
return inflateReset(strm);
}
int ZEXPORT ptpng_inflateReset2(z_streamp strm, int windowBits) {
return inflateReset2(strm, windowBits);
}
|