From 225a6f1068f71723a910e8565db4e252b3ca21fa Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 10 Jun 2011 11:18:17 -0700 Subject: zlib: wrap deflateBound() too Signed-off-by: Junio C Hamano --- cache.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 5eb61ac04e..85ac5ec17c 100644 --- a/cache.h +++ b/cache.h @@ -16,9 +16,6 @@ #endif #include -#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) -- cgit v1.3