Provide an up to date version of g_base64_decode() for older GLib.
[claws.git] / src / common / utils.h
index 3771d45186aa0aec3fdcdea02ef1ae06f155535a..0a38d34ab81e27982a2a1a784a22e1b1db8d32c5 100644 (file)
@@ -75,6 +75,11 @@ typedef gint64 goffset;
   #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;