diff --git a/programs/Makefile b/programs/Makefile index dd6e7838..083b0f2f 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -86,10 +86,10 @@ all: zstd $(ZSTDDECOMP_O): $(ZSTDDIR)/decompress/zstd_decompress.c - $(CC) $(ALIGN_LOOP) $(FLAGS) $^ -c -o $@ + $(CC) $(ALIGN_LOOP) $(FLAGS) -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) $^ -c -o $@ $(ZSTDDECOMP32_O): $(ZSTDDIR)/decompress/zstd_decompress.c - $(CC) -m32 $(ALIGN_LOOP) $(FLAGS) $^ -c -o $@ + $(CC) -m32 $(ALIGN_LOOP) $(FLAGS) -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT) $^ -c -o $@ zstd : $(ZSTDDECOMP_O) $(ZSTD_FILES) $(ZSTDLEGACY_FILES) $(ZDICT_FILES) \ zstdcli.c fileio.c bench.c datagen.c dibio.c diff --git a/programs/fileio.c b/programs/fileio.c index 00cb31ba..55ba1425 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -610,7 +610,7 @@ static void FIO_fwriteSparseEnd(FILE* file, unsigned storedSkips) unsigned long long FIO_decompressFrame(dRess_t ress, FILE* foutput, FILE* finput, size_t alreadyLoaded) { - U64 frameSize = 0; + U64 frameSize = 0; size_t readSize; U32 storedSkips = 0; @@ -721,7 +721,7 @@ static int FIO_decompressSrcFile(dRess_t ress, const char* srcFileName) /* Final Status */ DISPLAYLEVEL(2, "\r%79s\r", ""); - DISPLAYLEVEL(2, "%-20.20s: %llu bytes \n", srcFileName, filesize); + DISPLAYLEVEL(2, "%-20s: %llu bytes \n", srcFileName, filesize); /* Close */ if (fclose(srcFile)) EXM_THROW(33, "zstd: %s close error", srcFileName); /* error should never happen */