diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-06-10 12:11:48 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-06-10 12:12:41 +0200 |
commit | 26e73711b10a533fc45fa8839da9c6a7045fafe6 (patch) | |
tree | 138a6518498902bf3feae20834eae3e2ead440fe | |
parent | d13b4a793d577be2364bcabb05bca1f19321b65a (diff) | |
download | tdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.tar.gz tdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.tar.xz tdv-26e73711b10a533fc45fa8839da9c6a7045fafe6.zip |
Improve GLib version compatibility
-rw-r--r-- | src/sdtui.c | 4 |
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) |