From: Tim Janik Date: Thu, 14 Jun 2007 21:55:41 +0000 (+0000) Subject: always define GType unconditionally in terms of gsize, there's no need to X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=71a9fa98799d5c4ccb509e4480998518e4704bd7;p=dana%2Fcg-glib.git always define GType unconditionally in terms of gsize, there's no need to Thu Jun 14 23:32:00 2007 Tim Janik * gtype.h: always define GType unconditionally in terms of gsize, there's no need to jump through a glong hoop ever and this fixes the printf modifier to %zu. svn path=/trunk/; revision=5560 --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index fcac6665..5afab271 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,9 @@ +Thu Jun 14 23:32:00 2007 Tim Janik + + * gtype.h: always define GType unconditionally in terms of gsize, + there's no need to jump through a glong hoop ever and this fixes + the printf modifier to %zu. + Thu Jun 14 22:33:11 2007 Tim Janik * gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc, diff --git a/gobject/gtype.h b/gobject/gtype.h index 1586888c..0d9d6774 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -88,11 +88,7 @@ G_BEGIN_DECLS /* Typedefs */ -#if GLIB_SIZEOF_LONG == GLIB_SIZEOF_SIZE_T -typedef gulong GType; -#else /* hm, shouldn't happen? */ typedef gsize GType; -#endif typedef struct _GValue GValue; typedef union _GTypeCValue GTypeCValue; typedef struct _GTypePlugin GTypePlugin;