diff options
Diffstat (limited to 'atk/atkregistry.h')
-rw-r--r-- | atk/atkregistry.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/atk/atkregistry.h b/atk/atkregistry.h index 3ab0414..eb16403 100644 --- a/atk/atkregistry.h +++ b/atk/atkregistry.h @@ -17,16 +17,18 @@ * 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_REGISTRY_H__ #define __ATK_REGISTRY_H__ -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - #include <glib-object.h> #include "atkobjectfactory.h" +G_BEGIN_DECLS + #define ATK_TYPE_REGISTRY (atk_registry_get_type ()) #define ATK_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_REGISTRY, AtkRegistry)) #define ATK_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_REGISTRY, AtkRegistryClass)) @@ -61,9 +63,7 @@ AtkObjectFactory* atk_registry_get_factory (AtkRegistry *registry, AtkRegistry* atk_get_default_registry (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __ATK_REGISTRY_H__ */ |