summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3')
-rwxr-xr-xxdelta3/examples/Makefile4
-rw-r--r--xdelta3/xdelta3-djw.h2
-rw-r--r--xdelta3/xdelta3.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/xdelta3/examples/Makefile b/xdelta3/examples/Makefile
index f151cc1..2a6c966 100755
--- a/xdelta3/examples/Makefile
+++ b/xdelta3/examples/Makefile
@@ -15,8 +15,10 @@ small_page_test: small_page_test.c $(DEPS)
15encode_decode_test: encode_decode_test.c $(DEPS) 15encode_decode_test: encode_decode_test.c $(DEPS)
16 $(CC) $(CFLAGS) encode_decode_test.c -o encode_decode_test 16 $(CC) $(CFLAGS) encode_decode_test.c -o encode_decode_test
17 17
18speed_test32 speed_test64: speed_test.c $(DEPS) 18speed_test32: speed_test.c $(DEPS)
19 $(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=0 speed_test.c -o speed_test32 19 $(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=0 speed_test.c -o speed_test32
20
21speed_test64: speed_test.c $(DEPS)
20 $(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=1 speed_test.c -o speed_test64 22 $(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=1 speed_test.c -o speed_test64
21 23
22clean: 24clean:
diff --git a/xdelta3/xdelta3-djw.h b/xdelta3/xdelta3-djw.h
index 54ad5e8..396f73c 100644
--- a/xdelta3/xdelta3-djw.h
+++ b/xdelta3/xdelta3-djw.h
@@ -449,7 +449,7 @@ djw_build_prefix (const djw_weight *freq, uint8_t *clen, int asize, int maxlen)
449 449
450 if (! overflow) 450 if (! overflow)
451 { 451 {
452 IF_DEBUG (if (first_bits != total_bits) 452 IF_DEBUG1 (if (first_bits != total_bits)
453 { 453 {
454 DP(RINT "code length overflow changed %u bits\n", (usize_t)(total_bits - first_bits)); 454 DP(RINT "code length overflow changed %u bits\n", (usize_t)(total_bits - first_bits));
455 }); 455 });
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 56dee2a..a76a124 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -88,7 +88,9 @@
88typedef unsigned int usize_t; 88typedef unsigned int usize_t;
89typedef u_int8_t uint8_t; 89typedef u_int8_t uint8_t;
90typedef u_int16_t uint16_t; 90typedef u_int16_t uint16_t;
91#ifndef __uint32_t_defined
91typedef int uint32_t; 92typedef int uint32_t;
93#endif
92typedef long long unsigned int uint64_t; 94typedef long long unsigned int uint64_t;
93#else 95#else
94#define WIN32_LEAN_AND_MEAN 96#define WIN32_LEAN_AND_MEAN