Skip to content

Commit

Permalink
Merge pull request #306 from rojer/lm_redefine
Browse files Browse the repository at this point in the history
Do not redefine TDEFL_LESS_MEMORY if already defined
  • Loading branch information
uroni authored May 16, 2024
2 parents 16413c2 + 2552e6d commit 3cc84f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniz_tdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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). */
Expand Down

0 comments on commit 3cc84f4

Please sign in to comment.