From 819e9fc615aea78ed2f6b05c6efc2967c03ec0a6 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 29 Mar 2023 22:58:39 +0200 Subject: [PATCH] Do not rely on ZSTD_CLEVEL_DEFAULT define --- src/script/lua_api/l_util.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index d24d070ca..0d9883bf7 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -44,6 +44,11 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/png.h" #include +// only available in zstd 1.3.5+ +#ifndef ZSTD_CLEVEL_DEFAULT +#define ZSTD_CLEVEL_DEFAULT 3 +#endif + // log([level,] text) // Writes a line to the logger. // The one-argument version logs to LL_NONE.