summaryrefslogtreecommitdiff
path: root/atk/atkgobjectaccessible.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-06-05 09:03:47 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-06-05 09:03:47 +0000
commit521b6f544e23dc43028b938e0c3d6e1618acdd7a (patch)
tree4dcc37fea45d3d62d6c756b56d553405d4ed792b /atk/atkgobjectaccessible.h
parentd35b90785a586b1f075414b44e975f26cca33855 (diff)
downloadatk-521b6f544e23dc43028b938e0c3d6e1618acdd7a.tar.gz
add G_DISABLE_SINGLE_INCLUDES and ATK_DISABLE_SINGLE_INCLUDES to CPPFLAGS.
2008-06-05 Michael Natterer <mitch@imendio.com> * 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. svn path=/trunk/; revision=1246
Diffstat (limited to 'atk/atkgobjectaccessible.h')
-rw-r--r--atk/atkgobjectaccessible.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/atk/atkgobjectaccessible.h b/atk/atkgobjectaccessible.h
index adb46cd..13950ae 100644
--- a/atk/atkgobjectaccessible.h
+++ b/atk/atkgobjectaccessible.h
@@ -17,15 +17,16 @@
* Boston, MA 02111-1307, USA.
*/
+#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
+#error "Only <atk/atk.h> can be included directly."
+#endif
+
#ifndef __ATK_GOBJECT_ACCESSIBLE_H__
#define __ATK_GOBJECT_ACCESSIBLE_H__
#include <atk/atk.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
/*
* The AtkGObjectAccessible class is provided as a basis for implementing
@@ -59,9 +60,6 @@ struct _AtkGObjectAccessibleClass
AtkObject *atk_gobject_accessible_for_object (GObject *obj);
GObject *atk_gobject_accessible_get_object (AtkGObjectAccessible *obj);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
#endif /* __ATK_GOBJECT_ACCESSIBLE_H__ */