Fix zlib version check for 1.3 and future version.

bz#3604.
This commit is contained in:
Darren Tucker 2023-08-19 07:39:08 +10:00
parent f3e39c4700
commit e99a02ec18
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@ else
[[ [[
int a=0, b=0, c=0, d=0, n, v; int a=0, b=0, c=0, d=0, n, v;
n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
if (n != 3 && n != 4) if (n < 1)
exit(1); exit(1);
v = a*1000000 + b*10000 + c*100 + d; v = a*1000000 + b*10000 + c*100 + d;
fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);