aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-15 23:16:42 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-15 23:16:42 +0100
commite4e0b3764761c8e204bfdf169d83af950d9e6340 (patch)
tree2446ed50042655de3c9ff6299d1e10f6ef467cfc
parente693ac27b08e60c325223a0797dbf49ed2dbc3b3 (diff)
Fix compatibility with older GLib versions again. (Bug #643, patch from
Robert Scheck.)
-rw-r--r--protocols/twitter/twitter_lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index 05607164..0578c5e0 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -35,6 +35,14 @@
#include <ctype.h>
#include <errno.h>
+/* GLib < 2.12.0 doesn't have g_ascii_strtoll(), work around using system strtoll(). */
+/* GLib < 2.12.4 can be buggy: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488013 */
+#if !GLIB_CHECK_VERSION(2,12,5)
+#include <stdlib.h>
+#include <limits.h>
+#define g_ascii_strtoll strtoll
+#endif
+
#define TXL_STATUS 1
#define TXL_USER 2
#define TXL_ID 3