summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b20b2b3)
Patch by Jean Diraison, closes bug #3473.
static GSList *tempfiles=NULL;
#endif
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)
/* 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
#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;
#if !GLIB_CHECK_VERSION(2, 25, 0)
# ifdef G_OS_WIN32
typedef _g_stat_struct GStatBuf;
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
#include "codeconv.h"
#include "quoted-printable.h"
#include "codeconv.h"
#include "quoted-printable.h"