Skip to content

Commit

Permalink
Fix glib version check (#773)
Browse files Browse the repository at this point in the history
Fixes #772.

Co-authored-by: Juan José Nicola <juan.nicola@greenbone.net>
  • Loading branch information
tgurr and jjnicola authored Jun 9, 2023
1 parent 63057b9 commit 07fe9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions base/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions util/kb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07fe9dc

Please sign in to comment.