Mercurial > pidgin.yaz
changeset 13622:64e664654177
[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 <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 11 Apr 2006 16:02:57 +0000 |
parents | 095fd5936962 |
children | 51d436a267ac |
files | src/internal.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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