From 9683a1ae874b2928490d675b66fb80e12c111990 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 5 Jan 2017 16:50:37 +0100 Subject: LZ4_MEMORY_USAGE can be modified from compilation command line --- NEWS | 3 +++ lib/lz4.h | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 1d42954..8075947 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +v1.7.6 +build : LZ4_MEMORY_USAGE can be modified at compile time, through external define + v1.7.5 lz4hc : new high compression mode : levels 10-12 compress more and slower, by Przemyslaw Skibinski lz4cat : fix : works with relative path (#284) and stdin (#285) (reported by @beiDei8z) diff --git a/lib/lz4.h b/lib/lz4.h index 0aae19c..3dc115b 100644 --- a/lib/lz4.h +++ b/lib/lz4.h @@ -108,8 +108,9 @@ LZ4LIB_API const char* LZ4_versionString (void); * Reduced memory usage can improve speed, due to cache effect * Default value is 14, for 16KB, which nicely fits into Intel x86 L1 cache */ -#define LZ4_MEMORY_USAGE 14 - +#ifndef LZ4_MEMORY_USAGE +# define LZ4_MEMORY_USAGE 14 +#endif /*-************************************ * Simple Functions -- cgit v0.12