From ed6b2e1c9c100a9b780edfdd5f36f634f30fec54 Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@xfce.org> Date: Sun, 1 Aug 2021 02:26:53 +0200 Subject: Add missing G_BEGIN_DECLS and G_END_DECLS The missing directives prevent libxfce4util to be used from C++ code. --- libxfce4util/xfce-gio-extensions.h | 4 ++++ libxfce4util/xfce-i18n.h | 4 ++++ libxfce4util/xfce-rc-private.h | 3 +++ 3 files changed, 11 insertions(+) diff --git a/libxfce4util/xfce-gio-extensions.h b/libxfce4util/xfce-gio-extensions.h index aa58e06..e6e2bff 100644 --- a/libxfce4util/xfce-gio-extensions.h +++ b/libxfce4util/xfce-gio-extensions.h @@ -27,6 +27,8 @@ #include #include +G_BEGIN_DECLS + gboolean xfce_g_file_metadata_is_supported (GFile *file); gchar *xfce_g_file_create_checksum (GFile *file, GCancellable *cancellable, @@ -39,4 +41,6 @@ gboolean xfce_g_file_is_trusted (GFile *file, GCancellable *cancellable, GError **error); +G_END_DECLS + #endif /*__XFCE_GIO_EXTENSIONS_H__*/ diff --git a/libxfce4util/xfce-i18n.h b/libxfce4util/xfce-i18n.h index 782a657..681c004 100644 --- a/libxfce4util/xfce-i18n.h +++ b/libxfce4util/xfce-i18n.h @@ -35,6 +35,8 @@ #include #endif +G_BEGIN_DECLS + #if !defined(GETTEXT_PACKAGE) #ifdef gettext @@ -91,4 +93,6 @@ gchar* xfce_get_path_localized (gchar *dst, guint xfce_locale_match (const gchar *locale1, const gchar *locale2); +G_END_DECLS + #endif /* !__XFCE_I18N_H__ */ diff --git a/libxfce4util/xfce-rc-private.h b/libxfce4util/xfce-rc-private.h index e482729..3f2f616 100644 --- a/libxfce4util/xfce-rc-private.h +++ b/libxfce4util/xfce-rc-private.h @@ -24,6 +24,8 @@ #include +G_BEGIN_DECLS + typedef struct _XfceRcConfig XfceRcConfig; typedef struct _XfceRcSimple XfceRcSimple; @@ -133,5 +135,6 @@ G_GNUC_INTERNAL void _xfce_rc_config_write_entry (XfceRc *rc, const gchar *key, const gchar *value); +G_END_DECLS #endif /* !__LIBXFCE4UTIL_XFCE_RC_PRIVATE_H__ */ -- cgit v1.2.1