mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
629188ede7
commit
41f1a8435a
@@ -14,6 +14,7 @@ https://developers.google.com/open-source/licenses/bsd
|
||||
#define DISABLE_SIGN_COMPARE_WARNINGS
|
||||
|
||||
#include "git-compat-util.h"
|
||||
#include "compat/zlib-compat.h"
|
||||
|
||||
/*
|
||||
* An implementation-specific temporary file. By making this specific to the
|
||||
|
||||
Reference in New Issue
Block a user