diff options
author | Kalev Lember <klember@redhat.com> | 2021-02-12 15:55:28 +0100 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2021-02-12 15:58:09 +0100 |
commit | 426284759c58df81bdbc80167f01058a2c197c0d (patch) | |
tree | f72d5d5977edc181fd31273430b14af7f5828f6e /common/flatpak-installation.h | |
parent | 7224809bc1e2584708b29ec1389cbcf1eeba1d3f (diff) | |
download | flatpak-426284759c58df81bdbc80167f01058a2c197c0d.tar.gz |
Add G_BEGIN_DECLS/G_END_DECLS to public headers
This ensures that we correctly specify C linkage when including flatpak
headers from C++ code.
This should fix fallout from glib's change to include C++ code in its
headers, see https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1935
for discussion.
Fixes https://github.com/flatpak/flatpak/issues/4117
Diffstat (limited to 'common/flatpak-installation.h')
-rw-r--r-- | common/flatpak-installation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/flatpak-installation.h b/common/flatpak-installation.h index b9385c9d..899163e5 100644 --- a/common/flatpak-installation.h +++ b/common/flatpak-installation.h @@ -32,6 +32,8 @@ typedef struct _FlatpakInstallation FlatpakInstallation; #include <flatpak-instance.h> #include <flatpak-remote.h> +G_BEGIN_DECLS + #define FLATPAK_TYPE_INSTALLATION flatpak_installation_get_type () #define FLATPAK_INSTALLATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLATPAK_TYPE_INSTALLATION, FlatpakInstallation)) #define FLATPAK_IS_INSTALLATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLATPAK_TYPE_INSTALLATION)) @@ -482,5 +484,6 @@ FLATPAK_EXTERN gboolean flatpak_installation_run_triggers (FlatpakInsta GCancellable *cancellable, GError **error); +G_END_DECLS #endif /* __FLATPAK_INSTALLATION_H__ */ |