Compatibility with older glib versions release-2.4.3

Thu, 26 Jun 2008 19:08:38 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Thu, 26 Jun 2008 19:08:38 +0000
branch
release-2.4.3
changeset 23200
3a7e2f22bad6
parent 23199
c8a241b5a5b5
child 23201
a9efe9add251
child 23535
75c369b8147f

Compatibility with older glib versions

libpurple/internal.h file | annotate | diff | comparison | revisions
--- a/libpurple/internal.h	Thu Jun 26 19:04:52 2008 +0000
+++ b/libpurple/internal.h	Thu Jun 26 19:08:38 2008 +0000
@@ -140,6 +140,14 @@
 #	define G_MAXUINT32 ((guint32) 0xffffffff)
 #endif
 
+#ifndef G_MAXSIZE
+#	if GLIB_SIZEOF_LONG == 8
+#		define G_MAXSIZE ((gsize) 0xffffffffffffffff)
+#	else
+#		define G_MAXSIZE ((gsize) 0xffffffff)
+#	endif
+#endif
+
 #if GLIB_CHECK_VERSION(2,6,0)
 #	include <glib/gstdio.h>
 #endif

mercurial