Ticket #31221: patch-gobject-gtype.h.diff

File patch-gobject-gtype.h.diff, 559 bytes (added by ccorn@…, 13 years ago)

Proposed workaround for the "transparent union" glib2 issue

  • gobject/gtype.h

    old new type_name##_get_type (void) \ 
    15371537 */
    15381538#define G_DEFINE_BOXED_TYPE_WITH_CODE(TypeName, type_name, copy_func, free_func, _C_) _G_DEFINE_BOXED_TYPE_BEGIN (TypeName, type_name, copy_func, free_func) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
    15391539
    1540 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
     1540#if 0
    15411541#define _G_DEFINE_BOXED_TYPE_BEGIN(TypeName, type_name, copy_func, free_func) \
    15421542GType \
    15431543type_name##_get_type (void) \