From 07fe9dc4556df5c3242b1abd910a6eb1b36cf8c3 Mon Sep 17 00:00:00 2001 From: Timo Gurr Date: Fri, 9 Jun 2023 08:51:55 +0200 Subject: [PATCH] Fix glib version check (#773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #772. Co-authored-by: Juan José Nicola --- base/networking.c | 3 +-- util/kb.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/base/networking.c b/base/networking.c index a3953fff..ce63af6f 100644 --- a/base/networking.c +++ b/base/networking.c @@ -34,8 +34,7 @@ */ #define G_LOG_DOMAIN "libgvm base" -#if (GLIB_MAJOR_VERSION >= 2) && (GLIB_MINOR_VERSION >= 67) \ - && (GLIB_MICRO_VERSION >= 3) +#if GLIB_CHECK_VERSION(2, 67, 3) #define memdup g_memdup2 #else #define memdup g_memdup diff --git a/util/kb.c b/util/kb.c index 65d57be2..60f0949c 100644 --- a/util/kb.c +++ b/util/kb.c @@ -26,8 +26,7 @@ */ #define G_LOG_DOMAIN "libgvm util" -#if (GLIB_MAJOR_VERSION >= 2) && (GLIB_MINOR_VERSION >= 67) \ - && (GLIB_MICRO_VERSION >= 3) +#if GLIB_CHECK_VERSION(2, 67, 3) #define memdup g_memdup2 #else #define memdup g_memdup