GNOME Bugzilla – Bug 535704
Add guards to prevent including individual files
Last modified: 2008-06-05 09:04:58 UTC
I've prepared a patch that allows to define ATK_DISABLE_SINGLE_INCLUDES the same way it has been done in GLib and GTK+ Patch follows.
Created attachment 111787 [details] [review] Patch implementing the above Also used G_BEGIN_DECLS and G_END_DECLS consistently in all headers. Ok to commit?
Thanks for the patch.
Committed to trunk: 2008-06-05 Michael Natterer <mitch@imendio.com> Bug #535704: * configure.in: add G_DISABLE_SINGLE_INCLUDES and ATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS. * atk/atk.h: define __ATK_H_INSIDE__ around including all other headers. * atk/atk*.h: add single-include guards that #error out if ATK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. Use G_BEGIN_DECLS/G_END_DECLS in all files. * atk/Makefile.am: define ATK_COMPILATION while building ATK. Add single-include guards to the generated atk-enum-types.h too.