diff options
Diffstat (limited to 'xdelta3')
-rwxr-xr-x | xdelta3/examples/Makefile | 4 | ||||
-rw-r--r-- | xdelta3/xdelta3-djw.h | 2 | ||||
-rw-r--r-- | xdelta3/xdelta3.h | 2 |
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) | |||
15 | encode_decode_test: encode_decode_test.c $(DEPS) | 15 | encode_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 | ||
18 | speed_test32 speed_test64: speed_test.c $(DEPS) | 18 | speed_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 | |||
21 | speed_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 | ||
22 | clean: | 24 | clean: |
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 @@ | |||
88 | typedef unsigned int usize_t; | 88 | typedef unsigned int usize_t; |
89 | typedef u_int8_t uint8_t; | 89 | typedef u_int8_t uint8_t; |
90 | typedef u_int16_t uint16_t; | 90 | typedef u_int16_t uint16_t; |
91 | #ifndef __uint32_t_defined | ||
91 | typedef int uint32_t; | 92 | typedef int uint32_t; |
93 | #endif | ||
92 | typedef long long unsigned int uint64_t; | 94 | typedef long long unsigned int uint64_t; |
93 | #else | 95 | #else |
94 | #define WIN32_LEAN_AND_MEAN | 96 | #define WIN32_LEAN_AND_MEAN |