static GSList *tempfiles=NULL;
#endif
+#if !GLIB_CHECK_VERSION(2, 26, 0)
+guchar *g_base64_decode_wa(const gchar *text, gsize *out_len)
+{
+ guchar *ret;
+ gsize input_length;
+ gint state = 0;
+ guint save = 0;
+
+ input_length = strlen(text);
+
+ ret = g_malloc0((input_length / 4) * 3 + 1);
+
+ *out_len = g_base64_decode_step(text, input_length, ret, &state, &save);
+
+ return ret;
+}
+#endif
+
/* Return true if we are running as root. This function should beused
instead of getuid () == 0. */
gboolean superuser_p (void)
#define HAVE_U32_TYPEDEF
#endif
+#if !GLIB_CHECK_VERSION(2, 26, 0)
+#define g_base64_decode(t,l) g_base64_decode_wa((t),(l))
+guchar *g_base64_decode_wa(const gchar *text, gsize *out_len);
+#endif
+
#if !GLIB_CHECK_VERSION(2, 25, 0)
# ifdef G_OS_WIN32
typedef _g_stat_struct GStatBuf;