Add -DGLIB_COMPILATION for GLib-2.0.gir.
authorHalton Huo <halton.huo@sun.com>
Wed, 23 Dec 2009 08:27:40 +0000 (16:27 +0800)
committerHalton Huo <halton.huo@sun.com>
Wed, 23 Dec 2009 08:27:40 +0000 (16:27 +0800)
Otherwise, suncc reports error when parsing /usr/include/glib-2.0/glib/ghostutils.h,
and stops parsing rest headers.

https://bugzilla.gnome.org/show_bug.cgi?id=605108

gir/Makefile.am

index db182f8..d7c32ca 100644 (file)
@@ -36,6 +36,7 @@ GLib_2_0_gir_CFLAGS = $(CPPFLAGS) \
             -I$(GLIB_INCLUDEDIR) \
             -I$(GLIB_LIBDIR)/glib-2.0/include \
             -DGETTEXT_PACKAGE=Dummy \
+            -DGLIB_COMPILATION \
             -D__G_I18N_LIB_H__
 GLib_2_0_gir_ASSERTIONS = $(srcdir)/GLib-2.0.xpath
 GLib_2_0_gir_FILES =  \