GNOME Bugzilla – Bug 531050
Enable optional single-include
Last modified: 2008-06-17 18:23:26 UTC
Attached patch does the following: - makes the build break if PANGO_DISABLE_SINGLE_INCLUDES is defined and anything except <pango/pango.h>, <pango/pangox.h> etc. is included. - gets rid of unneded includes in headers all over the place (took great care to make sure this change is 100% backward compatible). - adds new header <pango/pangofc.h> to enable above single-include policy. - build everything with G_DISABLE_SINGLE_INCLUDES. - build tests/ and examples/ with PANGO_DISABLE_SINGLE_INCLUDES.
Created attachment 110269 [details] [review] Patch implementing the above
Created attachment 110415 [details] [review] Modified patch This patch changes what I just changed in glib: Instead of checking for __PANGO_H__ etc. it now checks for __PANGO_H_INSIDE__ which is the proper way to do it and really catches all single includes.
*** This bug has been marked as a duplicate of 538734 ***