[glib] Add missing G_BEGIN/END_DECLS to gsettingsschema.h.



commit 4cd7bcaf00f26e60b7f76c7db91fcdefb9c0ae95
Author: Martin Ejdestig <marejde gmail com>
Date:   Tue Jul 2 19:53:04 2013 +0200

    Add missing G_BEGIN/END_DECLS to gsettingsschema.h.
    
    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 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettingsschema.h b/gio/gsettingsschema.h
index a857758..20bf99f 100644
--- a/gio/gsettingsschema.h
+++ b/gio/gsettingsschema.h
@@ -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__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]