From 2552e6d45a466d08da0f26e732f7080eaa53fc79 Mon Sep 17 00:00:00 2001 From: Deomid rojer Ryabkov Date: Sat, 23 Mar 2024 19:57:23 +0000 Subject: [PATCH] Do not redefine TDEFL_LESS_MEMORY if already defined --- miniz_tdef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniz_tdef.h b/miniz_tdef.h index 6ce6938..f5d0daf 100644 --- a/miniz_tdef.h +++ b/miniz_tdef.h @@ -9,7 +9,9 @@ extern "C" { /* ------------------- Low-level Compression API Definitions */ /* Set TDEFL_LESS_MEMORY to 1 to use less memory (compression will be slightly slower, and raw/dynamic blocks will be output more frequently). */ +#ifndef TDEFL_LESS_MEMORY #define TDEFL_LESS_MEMORY 0 +#endif /* tdefl_init() compression flags logically OR'd together (low 12 bits contain the max. number of probes per dictionary search): */ /* TDEFL_DEFAULT_MAX_PROBES: The compressor defaults to 128 dictionary probes per dictionary search. 0=Huffman only, 1=Huffman+LZ (fastest/crap compression), 4095=Huffman+LZ (slowest/best compression). */