From: W. Felix Handte Date: Tue, 4 Dec 2018 19:52:40 +0000 (-0800) Subject: Add Mutual-Exclusion Error X-Git-Tag: v1.3.8~13^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d51637d9750ca44f98c7dfaad10e6e0265f0a2;p=thirdparty%2Fzstd.git Add Mutual-Exclusion Error --- diff --git a/lib/decompress/huf_decompress.c b/lib/decompress/huf_decompress.c index 1139d39cd..2cc20da22 100644 --- a/lib/decompress/huf_decompress.c +++ b/lib/decompress/huf_decompress.c @@ -43,6 +43,19 @@ #include "huf.h" #include "error_private.h" +/* ************************************************************** +* Macros +****************************************************************/ + +/* These two optional macros force the use one way or another of the two + * Huffman decompression implementations. You can't force in both directions + * at the same time. + */ +#if defined(HUF_FORCE_DECOMPRESS_X1) && \ + defined(HUF_FORCE_DECOMPRESS_X2) +#error "Cannot force the use of the X1 and X2 decoders at the same time!" +#endif + /* ************************************************************** * Error Management