From: Marc Schink Date: Tue, 20 Feb 2024 17:19:54 +0000 (+0100) Subject: backend: Add missing #ifdef for zlib X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a6275a54cfe1639dbc77eb71d67b4b6999140fb9;p=libsigrok.git backend: Add missing #ifdef for zlib Add #ifdef statement since zlib is optional. At the moment an empty version string is used when zlib is not available: backend: Libs: glib 2.72.4 (rt: 2.72.4/7204:4), zlib , libzip 1.7.3, Signed-off-by: Marc Schink --- diff --git a/src/backend.c b/src/backend.c index 82ad42f7..db21294a 100644 --- a/src/backend.c +++ b/src/backend.c @@ -137,9 +137,11 @@ SR_API GSList *sr_buildinfo_libs_get(void) glib_binary_age, glib_interface_age)); l = g_slist_append(l, m); +#ifdef HAVE_ZLIB m = g_slist_append(NULL, g_strdup("zlib")); m = g_slist_append(m, g_strdup_printf("%s", CONF_ZLIB_VERSION)); l = g_slist_append(l, m); +#endif m = g_slist_append(NULL, g_strdup("libzip")); m = g_slist_append(m, g_strdup_printf("%s", CONF_LIBZIP_VERSION));