From 8ab5f5673bfdb207f15c9477077c85ede8f73aae Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 4 Apr 2009 13:32:09 +0200 Subject: [PATCH] Move G_END_DECLS before the #endif in gtkitemfactory.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug 577650 – gtkitemfactory.h fails to compile Place G_END_DECLS inside conditionals, otherwise C++ compilers will see a closing curly bracket when including the file for the second time. --- gtk/gtkitemfactory.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h index 0e71f4886a..5c57b8032e 100644 --- a/gtk/gtkitemfactory.h +++ b/gtk/gtkitemfactory.h @@ -228,10 +228,9 @@ void gtk_item_factory_create_menu_entries (guint n_entries, void gtk_item_factories_path_delete (const gchar *ifactory_path, const gchar *path); -#endif /* !GTK_DISABLE_DEPRECATED */ - - G_END_DECLS +#endif /* !GTK_DISABLE_DEPRECATED */ + #endif /* __GTK_ITEM_FACTORY_H__ */