aboutsummaryrefslogtreecommitdiff
path: root/src/sdtui.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-10 12:11:48 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-10 12:12:41 +0200
commit26e73711b10a533fc45fa8839da9c6a7045fafe6 (patch)
tree138a6518498902bf3feae20834eae3e2ead440fe /src/sdtui.c
parentd13b4a793d577be2364bcabb05bca1f19321b65a (diff)
downloadtdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.tar.gz
tdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.tar.xz
tdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.zip
Improve GLib version compatibility
Diffstat (limited to 'src/sdtui.c')
-rw-r--r--src/sdtui.c4
1 files changed, 4 insertions, 0 deletions
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)