aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-05-25 13:14:15 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-05-25 13:15:47 +0000
commitab4a2aa0f28fbae12fc5682d0fb4bf1699b2bed2 (patch)
tree092f75a0a94f37fd38625356ddcd8ce82324eb73 /epan/epan.c
parent3248e2a7597d7a0e8a2f544046456c6847059bfa (diff)
epan: Add some minimum version checks
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 06a9c788b1..69e95010b0 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -826,7 +826,7 @@ epan_get_compiled_version_info(GString *str)
/* LZ4 */
g_string_append(str, ", ");
#ifdef HAVE_LZ4
- g_string_append(str, "with LZ4 " LZ4_VERSION_STRING);
+ g_string_append(str, "with LZ4");
#else
g_string_append(str, "without LZ4");
#endif /* HAVE_LZ4 */
@@ -834,7 +834,7 @@ epan_get_compiled_version_info(GString *str)
/* Zstandard */
g_string_append(str, ", ");
#ifdef HAVE_ZSTD
- g_string_append(str, "with Zstandard " ZSTD_VERSION_STRING);
+ g_string_append(str, "with Zstandard");
#else
g_string_append(str, "without Zstandard");
#endif /* HAVE_ZSTD */
@@ -879,12 +879,16 @@ epan_get_runtime_version_info(GString *str)
/* LZ4 */
#ifdef HAVE_LZ4
+#if LZ4_VERSION_NUMBER >= 10703
g_string_append_printf(str, ", with LZ4 %s", LZ4_versionString());
+#endif
#endif /* HAVE_LZ4 */
/* Zstandard */
#ifdef HAVE_ZSTD
+#if ZSTD_VERSION_NUMBER >= 10300
g_string_append_printf(str, ", with Zstandard %s", ZSTD_versionString());
+#endif
#endif /* HAVE_ZSTD */
}