]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Add Mutual-Exclusion Error
authorW. Felix Handte <w@felixhandte.com>
Tue, 4 Dec 2018 19:52:40 +0000 (11:52 -0800)
committerW. Felix Handte <w@felixhandte.com>
Tue, 18 Dec 2018 21:36:39 +0000 (13:36 -0800)
lib/decompress/huf_decompress.c

index 1139d39cd91cb2ae36341a1a7d6d4a451610aeb3..2cc20da22768f76fc827c8e473ef832b16fc68d5 100644 (file)
 #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