fixed zstd-decompress

which cannot support ZSTD_minCLevel()
This commit is contained in:
Yann Collet
2018-09-22 17:21:39 -07:00
parent 364041c6dd
commit 0fc07eb1fd
+2
View File
@@ -631,6 +631,7 @@ int main(int argCount, const char* argv[])
compressionParams.windowLog = ldmWindowLog; compressionParams.windowLog = ldmWindowLog;
continue; continue;
} }
#ifndef ZSTD_NOCOMPRESS /* linking ZSTD_minCLevel() requires compression support */
if (longCommandWArg(&argument, "--fast")) { if (longCommandWArg(&argument, "--fast")) {
/* Parse optional acceleration factor */ /* Parse optional acceleration factor */
if (*argument == '=') { if (*argument == '=') {
@@ -652,6 +653,7 @@ int main(int argCount, const char* argv[])
} }
continue; continue;
} }
#endif
/* fall-through, will trigger bad_usage() later on */ /* fall-through, will trigger bad_usage() later on */
} }