diff libpurple/internal.h @ 23058:00b442421563

Compatibility with older glib versions
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 26 Jun 2008 19:08:38 +0000
parents a8fff9da2791
children 1008901e1d5c eac0561dfd55
line wrap: on
line diff
--- 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