diff options
author | Toon Claes <toon@iotcl.com> | 2025-03-07 15:18:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-07 12:23:30 -0800 |
commit | 2b1e0f8cd5058c7e0b85760e54706b9e74cb4766 (patch) | |
tree | 812bbc2f9cd054aafa9d70f83fdf4758baaae0d1 /builtin/commit-tree.c | |
parent | 49d9cd8dea520a318412792b50ab4b91ce71b9fe (diff) |
help: print zlib-ng version number
When building against zlib-ng, the header file `zlib.h` is not included,
but `zlib-ng.h` is included instead. It's `zlib.h` that defines
`ZLIB_VERSION` and that macro is used to print out zlib version in
`git-version(1)` with `--build-options`. But when it's not defined, no
version is printed.
`zlib-ng.h` defines another macro: `ZLIBNG_VERSION`. Use that macro to
print the zlib-ng version in `git version --build-options` when it's
set. Otherwise fallback to `ZLIB_VERSION`.
Signed-off-by: Toon Claes <toon@iotcl.com>
Helped-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions