From 9d35738ec8a86257acf6e122a76359c7700c8fcb Mon Sep 17 00:00:00 2001 From: Gonzalo Diethelm Date: Tue, 29 Mar 2022 17:34:21 +0200 Subject: [PATCH] WIP: use zstd ZDICT_finalizeDictionary() -- fixes Summary: ZSTD_VERSION_STRING is not always defined. Reviewers: Andrew Kryczka Tasks: T92484194 Tags: zstd, dictionary, untrained --- util/compression.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/compression.h b/util/compression.h index 8c90fd2aba..33e93ee3dc 100644 --- a/util/compression.h +++ b/util/compression.h @@ -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: