diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2022-08-05 19:36:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 19:36:57 (GMT) |
commit | ca26930a91e5b1d47d725b1043e1f5282fd18aaf (patch) | |
tree | ba818aeea6d8442544783c4b8fe1fde46fd6b737 /lib/lz4hc.c | |
parent | f7b1f6b7420822255b09acdd1b82848b12e1cda1 (diff) | |
parent | 9173ca37d793a6cbb1e5a8657d8e6ebafc53230c (diff) | |
download | lz4-ca26930a91e5b1d47d725b1043e1f5282fd18aaf.zip lz4-ca26930a91e5b1d47d725b1043e1f5282fd18aaf.tar.gz lz4-ca26930a91e5b1d47d725b1043e1f5282fd18aaf.tar.bz2 |
Merge pull request #1124 from t-mat/compile-time-purge-memalloc-func
Introduce LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r-- | lib/lz4hc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index e854cb4..4771ef8 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -988,6 +988,7 @@ int LZ4_compress_HC_destSize(void* state, const char* source, char* dest, int* s * Streaming Functions **************************************/ /* allocation */ +#if !defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION) LZ4_streamHC_t* LZ4_createStreamHC(void) { LZ4_streamHC_t* const state = @@ -1004,6 +1005,7 @@ int LZ4_freeStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr) FREEMEM(LZ4_streamHCPtr); return 0; } +#endif LZ4_streamHC_t* LZ4_initStreamHC (void* buffer, size_t size) |