# HG changeset patch # User Richard Laager # Date 1144771377 0 # Node ID 64e6646541778416281e23d1b98ed3fee30d2058 # Parent 095fd5936962120bfae22a3d7a66f0b85dfcf9d7 [gaim-migrate @ 16008] Provide some compatibility macros for gslice allocation. This way, we don't have to have a million #ifdefs. I'm going to commit changes to log.c. If that breaks things for you and you're not running Glib 2.10, look here. committer: Tailor Script diff -r 095fd5936962 -r 64e664654177 src/internal.h --- a/src/internal.h Tue Apr 11 15:59:36 2006 +0000 +++ b/src/internal.h Tue Apr 11 16:02:57 2006 +0000 @@ -142,6 +142,11 @@ # define g_open open #endif +#if !GLIB_CHECK_VERSION(2,10,0) +# define g_slice_new(type) g_new(type, 1) +# define g_slice_new0(type) g_new0(type, 1) +# define g_slice_free(type, mem) g_free(mem) +#endif /* ugly ugly ugly */ /* This is a workaround for the fact that G_GINT64_MODIFIER and G_GSIZE_FORMAT