mirror of https://github.com/madler/zlib.git
crc32.c was #including limits.h in order to find a four-byte integer type. It was doing this even if Z_SOLO were defined, violating the intent of Z_SOLO, which is to include no library headers and require no library functions. Now crc32.c obeys the intent of Z_SOLO, but with the downside that crc32() will be slower than when not compiled with Z_SOLO. This can be remedied manually by typedefing u4 to a known four-byte unsigned integer type, and #defining BYFOUR in crc32.c.pull/3/head^2
parent
55b8b5fec1
commit
f9e4edc996
1 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue