From 26e73711b10a533fc45fa8839da9c6a7045fafe6 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 10 Jun 2023 12:11:48 +0200 Subject: Improve GLib version compatibility --- src/sdtui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sdtui.c') diff --git a/src/sdtui.c b/src/sdtui.c index ba1e25c..c078f1a 100644 --- a/src/sdtui.c +++ b/src/sdtui.c @@ -207,6 +207,10 @@ app_char_width (Application *app, gunichar c) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +#if !GLIB_CHECK_VERSION(2, 68, 0) +#define g_memdup2 g_memdup +#endif + /// Splits the entry and adds it to a pointer array. static void view_entry_split_add (ViewEntry *ve, const gchar *text, const chtype *attrs) -- cgit v1.2.3-70-g09d2