work around SGI IDO cc, fixes #363986.

Thu Jun 14 22:33:11 2007  Tim Janik  <timj@imendio.com>

        * gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc,
        fixes #363986.



svn path=/trunk/; revision=5559
This commit is contained in:
Tim Janik 2007-06-14 20:56:15 +00:00 committed by Tim Janik
parent b2d6494a5e
commit b5986ac551
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Thu Jun 14 22:33:11 2007 Tim Janik <timj@imendio.com>
* gparamspecs.c (g_param_spec_types_init): work around SGI IDO cc,
fixes #363986.
2007-06-05 Matthias Clasen <mclasen@redhat.com>
* === Released 2.13.4 ===

View File

@ -1470,17 +1470,17 @@ g_param_spec_types_init (void)
/* G_TYPE_PARAM_GTYPE
*/
{
GType value_type = G_TYPE_GTYPE;
GParamSpecTypeInfo pspec_info = {
sizeof (GParamSpecGType), /* instance_size */
0, /* n_preallocs */
param_gtype_init, /* instance_init */
value_type, /* value_type */
0xdeadbeef, /* value_type, assigned further down */
NULL, /* finalize */
param_gtype_set_default, /* value_set_default */
param_gtype_validate, /* value_validate */
param_gtype_values_cmp, /* values_cmp */
};
pspec_info.value_type = G_TYPE_GTYPE;
type = g_param_type_register_static (g_intern_static_string ("GParamGType"), &pspec_info);
*spec_types++ = type;
g_assert (type == G_TYPE_PARAM_GTYPE);