makes it possible to compile libzstd in single-thread mode without zstdmt_compress.c (#819)

This commit is contained in:
Yann Collet
2017-09-11 14:09:34 -07:00
parent 3128e03be6
commit 0d6ecc72a3
7 changed files with 60 additions and 20 deletions
+5 -1
View File
@@ -16,7 +16,9 @@
* Dependencies
***************************************/
#include "zstd_internal.h"
#include "zstdmt_compress.h"
#ifdef ZSTD_MULTITHREAD
# include "zstdmt_compress.h"
#endif
#if defined (__cplusplus)
extern "C" {
@@ -90,7 +92,9 @@ struct ZSTD_CCtx_s {
ZSTD_prefixDict prefixDict; /* single-usage dictionary */
/* Multi-threading */
#ifdef ZSTD_MULTITHREAD
ZSTDMT_CCtx* mtctx;
#endif
};