]> git.lizzy.rs Git - minetest.git/commitdiff
Do not rely on ZSTD_CLEVEL_DEFAULT define
authorsfan5 <sfan5@live.de>
Wed, 29 Mar 2023 20:58:39 +0000 (22:58 +0200)
committersfan5 <sfan5@live.de>
Sat, 1 Apr 2023 20:06:03 +0000 (22:06 +0200)
src/script/lua_api/l_util.cpp

index d24d070ca7f1556893e431e3f7dd961a2b03b19f..0d9883bf715c381fc7210bef90bfc1aa42c4668c 100644 (file)
@@ -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.