--- a/src/gf_internal.h Mon Apr 12 18:16:46 2021 -0500
+++ b/src/gf_internal.h Mon Apr 12 18:23:57 2021 -0500
@@ -21,19 +21,7 @@
-#if GLIB_CHECK_VERSION(2,4,0)
#include <glib/gi18n-lib.h>
-#define _(String) dgettext (GETTEXT_PACKAGE, String)
-#define Q_(String) g_strip_context ((String), dgettext (GETTEXT_PACKAGE, String))
-#define N_(String) gettext_noop (String)
-#define N_(String) (String)
/* This works around the lack of G_GNUC_NULL_TERMINATED in old glib and the
* lack of the NULL sentinel in GCC older than 4.0.0 and non-GCC compilers */
@@ -45,27 +33,12 @@
-#if GLIB_CHECK_VERSION(2,6,0)
-# include <glib/gstdio.h>
-#endif /* GLIB_CHECK_VERSION(2,6,0) */
+#include <glib/gstdio.h> -#if !GLIB_CHECK_VERSION(2,6,0)
-# define g_freopen freopen
-# define g_remove remove
-# define g_unlink unlink
-# define g_rename rename
-#endif /* !GLIB_CHECK_VERSION(2,6,0) */
# include "../gf_config.h"
#endif /* HAVE_CONFIG_H */
--- a/src/gf_item_text.c Mon Apr 12 18:16:46 2021 -0500
+++ b/src/gf_item_text.c Mon Apr 12 18:23:57 2021 -0500
@@ -629,31 +629,6 @@
-/* ugly hack to keep us working on glib 2.0 */
-#if !GLIB_CHECK_VERSION(2,2,0)
-g_utf8_strreverse(const gchar *str, gssize len) {
- result = g_new0(gchar, len + 1);
- skip = g_utf8_skip[*(guchar*)p];
- for (m = r; skip; skip--)
/* this will probably break.. be sure to test it!!! */
gf_utf8_strrndup(const gchar *text, gint n) {