aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-03-29 22:58:39 +0200
committersfan5 <sfan5@live.de>2023-04-01 22:06:03 +0200
commit819e9fc615aea78ed2f6b05c6efc2967c03ec0a6 (patch)
treea23456214e24b300aeb95ffde70c465f3222c982 /src
parent48fc286a9500abfbd6c05f2002d73cc8ba57eebb (diff)
downloadminetest-819e9fc615aea78ed2f6b05c6efc2967c03ec0a6.tar.xz
Do not rely on ZSTD_CLEVEL_DEFAULT define
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_util.cpp5
1 files changed, 5 insertions, 0 deletions
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 <cstdio>
+// 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.