summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-10 18:18:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-06-10 18:18:17 (GMT)
commit225a6f1068f71723a910e8565db4e252b3ca21fa (patch)
tree5c7e5981d71f9ef025d1acb11b3e6350da3278b7 /cache.h
parent55bb5c9147a209eba44c3e9866704ece424c3d31 (diff)
downloadgit-225a6f1068f71723a910e8565db4e252b3ca21fa.zip
git-225a6f1068f71723a910e8565db4e252b3ca21fa.tar.gz
git-225a6f1068f71723a910e8565db4e252b3ca21fa.tar.bz2
zlib: wrap deflateBound() too
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index 5eb61ac..85ac5ec 100644
--- a/cache.h
+++ b/cache.h
@@ -16,9 +16,6 @@
#endif
#include <zlib.h>
-#if defined(NO_DEFLATE_BOUND) || ZLIB_VERNUM < 0x1200
-#define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
-#endif
void git_inflate_init(z_streamp strm);
void git_inflate_init_gzip_only(z_streamp strm);
@@ -30,6 +27,7 @@ void git_deflate_init_gzip(z_streamp strm, int level);
void git_deflate_end(z_streamp strm);
int git_deflate_end_gently(z_streamp strm);
int git_deflate(z_streamp strm, int flush);
+unsigned long git_deflate_bound(z_streamp, unsigned long);
#if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT)
#define DTYPE(de) ((de)->d_type)