Skip to content

Commit

Permalink
Have build test report library version if it doesn't match zlib.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Adler committed May 26, 2022
1 parent ec3df00 commit 441a2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ int main(argc, argv)
exit(1);

} else if (strcmp(zlibVersion(), ZLIB_VERSION) != 0) {
fprintf(stderr, "warning: different zlib version\n");
fprintf(stderr, "warning: different zlib version linked: %s\n",
zlibVersion());
}

printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n",
Expand Down

0 comments on commit 441a2ac

Please sign in to comment.