Add missing G_BEGIN/END_DECLS to gsettingsschema.h.
authorMartin Ejdestig <marejde@gmail.com>
Tue, 2 Jul 2013 17:53:04 +0000 (19:53 +0200)
committerColin Walters <walters@verbum.org>
Wed, 3 Jul 2013 13:03:20 +0000 (09:03 -0400)
Without this fix, using any of the enclosed functions when building with a
C++ compiler will result in undefined references.

https://bugzilla.gnome.org/show_bug.cgi?id=703478

gio/gsettingsschema.h

index a857758..20bf99f 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <glib-object.h>
 
+G_BEGIN_DECLS
+
 typedef struct _GSettingsSchemaSource                       GSettingsSchemaSource;
 typedef struct _GSettingsSchema                             GSettingsSchema;
 
@@ -62,4 +64,6 @@ const gchar *           g_settings_schema_get_id                        (GSettin
 GLIB_AVAILABLE_IN_2_32
 const gchar *           g_settings_schema_get_path                      (GSettingsSchema        *schema);
 
+G_END_DECLS
+
 #endif /* __G_SETTINGS_SCHEMA_H__ */