gtype.h: Fix Build on non-GCC
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 2 Feb 2015 15:25:31 +0000 (23:25 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 3 Feb 2015 12:20:46 +0000 (20:20 +0800)
commit6161b285da3d00fb4e02d4774d741799b6e18584
treece58621638c527d8458b414d948394774520419b
parent696db7561560d9311dca93f0c849f96770f41d01
gtype.h: Fix Build on non-GCC

Use the (private) _GLIB_DEFINE_AUTOPTR_CHAINUP macro for
G_DECLARE_DERIVABLE_TYPE and G_DECLARE_FINAL_TYPE so that we will
attempt to typedef and define items necessary for GCC
__attribute__((cleanup)) on, well, GCC only.

This fixes the build on non-GCC.

https://bugzilla.gnome.org/show_bug.cgi?id=743640
gobject/gtype.h