From b60a3e8ff3954ba054b6e752f8838ec5f8d7044f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20M=C3=A4klin?= Date: Wed, 18 Jan 2023 16:04:49 +0200 Subject: [PATCH] Use ZSTD_CLEVEL_DEFAULT instead of ZSTD_defaultCLevel() (support zstd < v1.5.0, see #18). --- include/zstd_stream_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/zstd_stream_wrapper.hpp b/include/zstd_stream_wrapper.hpp index b6698a1..bb6acc1 100644 --- a/include/zstd_stream_wrapper.hpp +++ b/include/zstd_stream_wrapper.hpp @@ -38,7 +38,7 @@ namespace detail { class zstd_stream_wrapper : public stream_wrapper { public: zstd_stream_wrapper(const bool _isInput = true, - const int level = ZSTD_defaultCLevel(), const int = 0) + const int level = ZSTD_CLEVEL_DEFAULT, const int = 0) : isInput(_isInput) { if (this->isInput) { this->dctx = ZSTD_createDCtx();