Merge branch 'ds/maint-deflatebound' into maint
authorJunio C Hamano <gitster@pobox.com>
Sat, 17 Nov 2007 05:14:17 +0000 (21:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Nov 2007 05:14:17 +0000 (21:14 -0800)
* ds/maint-deflatebound:
Improve accuracy of check for presence of deflateBound.

1  2 
Makefile
cache.h
diff --combined Makefile
index 41c90ad1d49c92829cd678f5f4ce8ad9f2e05985,783cd5bf6036379d2f17fea76b083679f0b02fd7..e0cfff35b627f2e6b31cdc2909de2b3d612b2fc5
+++ b/Makefile
@@@ -94,6 -94,8 +94,8 @@@ all:
  # Define OLD_ICONV if your library has an old iconv(), where the second
  # (input buffer pointer) parameter is declared with type (const char **).
  #
+ # Define NO_DEFLATE_BOUND if your zlib does not have deflateBound.
+ #
  # Define NO_R_TO_GCC_LINKER if your gcc does not like "-R/path/lib"
  # that tells runtime paths to dynamic libraries;
  # "-Wl,-rpath=/path/lib" is used instead.
  #
  # Define ASCIIDOC8 if you want to format documentation with AsciiDoc 8
  #
 +# Define DOCBOOK_XSL_172 if you want to format man pages with DocBook XSL v1.72.
 +#
  # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
  # MakeMaker (e.g. using ActiveState under Cygwin).
  #
@@@ -639,6 -639,10 +641,10 @@@ ifdef OLD_ICON
        BASIC_CFLAGS += -DOLD_ICONV
  endif
  
+ ifdef NO_DEFLATE_BOUND
+       BASIC_CFLAGS += -DNO_DEFLATE_BOUND
+ endif
  ifdef PPC_SHA1
        SHA1_HEADER = "ppc/sha1.h"
        LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
@@@ -896,7 -900,6 +902,7 @@@ git-http-push$X: revision.o http.o http
  $(LIB_OBJS) $(BUILTIN_OBJS) fetch.o: $(LIB_H)
  $(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
  $(DIFF_OBJS): diffcore.h
 +builtin-revert.o builtin-runstatus.o wt-status.o: wt-status.h
  
  $(LIB_FILE): $(LIB_OBJS)
        $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
diff --combined cache.h
index ecd809dc3332f630d5479a17bc73dcdf336fd92d,ddc011d1929560288371cd209e267a9b15e502f6..60af6d35794beb67dd7165668677cfbca9334f30
+++ b/cache.h
@@@ -6,7 -6,7 +6,7 @@@
  #include SHA1_HEADER
  #include <zlib.h>
  
- #if ZLIB_VERNUM < 0x1200
+ #if defined(NO_DEFLATE_BOUND) || ZLIB_VERNUM < 0x1200
  #define deflateBound(c,s)  ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
  #endif
  
@@@ -571,7 -571,6 +571,7 @@@ extern int pager_in_use
  extern int pager_use_color;
  
  extern char *editor_program;
 +extern char *excludes_file;
  
  /* base85 */
  int decode_85(char *dst, const char *line, int linelen);