diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-01-28 09:41:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-01-28 13:03:22 -0800 |
commit | 41f1a8435a900b660b7a6bc9da8dce2665e4b70a (patch) | |
tree | 8db1a650c6fdf589021007fedb365de8e0100791 /git-compat-util.h | |
parent | 629188ede7ee00c925ef28b85b1e68fc9e05fb93 (diff) |
git-compat-util: move include of "compat/zlib.h" into "git-zlib.h"
We include "compat/zlib.h" in "git-compat-util.h", which is
unnecessarily broad given that we only have a small handful of files
that use the zlib library. Move the header into "git-zlib.h" instead and
adapt users of zlib to include that header.
One exception is the reftable library, as we don't want to use the
Git-specific wrapper of zlib there, so we include "compat/zlib.h"
instead. Furthermore, we move the include into "reftable/system.h" so
that users of the library other than Git can wire up zlib themselves.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 1ca2671322..fb25fbf503 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1537,8 +1537,6 @@ int cmd_main(int, const char **); int common_exit(const char *file, int line, int code); #define exit(code) exit(common_exit(__FILE__, __LINE__, (code))) -#include "compat/zlib-compat.h" - /* * This include must come after system headers, since it introduces macros that * replace system names. |