WIP: use zstd ZDICT_finalizeDictionary() -- fixes

Summary:
ZSTD_VERSION_STRING is not always defined.

Reviewers:
Andrew Kryczka

Tasks:
T92484194

Tags:
zstd, dictionary, untrained
This commit is contained in:
Gonzalo Diethelm 2022-03-29 17:34:21 +02:00
parent b4345adc0a
commit 9d35738ec8

View file

@ -615,7 +615,11 @@ inline std::string CompressionTypeToString(CompressionType compression_type) {
case kXpressCompression:
return "Xpress";
case kZSTD:
#if defined(ZSTD_VERSION_STRING)
return "ZSTD (" ZSTD_VERSION_STRING ")";
#else
return "ZSTD";
#endif
case kZSTDNotFinalCompression:
return "ZSTDNotFinal";
case kDisableCompressionOption: