changeset 23060:00b442421563

Compatibility with older glib versions
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 26 Jun 2008 19:08:38 +0000
parents 79b4a8e0da77
children 7b7744995791 eac0561dfd55
files libpurple/internal.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
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