1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

core: make zstd dependency optional (closes #2024)

This commit is contained in:
Sébastien Helleu
2023-10-01 16:36:32 +02:00
parent 879a548bea
commit 6bd0c63192
39 changed files with 697 additions and 213 deletions
+4
View File
@@ -33,7 +33,9 @@
#include <gcrypt.h>
#include <curl/curl.h>
#include <zlib.h>
#ifdef HAVE_ZSTD
#include <zstd.h>
#endif
#include <gnutls/gnutls.h>
@@ -683,11 +685,13 @@ debug_libs_cb (const void *pointer, void *data,
gui_chat_printf (NULL, " zlib: (?)");
#endif /* ZLIB_VERSION */
#ifdef HAVE_ZSTD
/* display zstd version */
gui_chat_printf (NULL, " zstd: %d.%d.%d",
ZSTD_VERSION_MAJOR,
ZSTD_VERSION_MINOR,
ZSTD_VERSION_RELEASE);
#endif /* HAVE_ZSTD */
return WEECHAT_RC_OK;
}