diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2022-07-18 12:48:32 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2022-07-18 17:23:15 +0200 |
commit | b9e3ab53e5929527cf3bf7eda8b7f20ea0472124 (patch) | |
tree | 4f6b1cac8e69e84e05bc51f39f85ce5330c71728 /src/util/virinitctl.c | |
parent | 57d263d6a3832bac7bfeb4a93b68a91010469e75 (diff) | |
download | libvirt-b9e3ab53e5929527cf3bf7eda8b7f20ea0472124.tar.gz |
glibcompat: Provide implementation for G_GNUC_NO_INLINE
Currently, we require glib-2.56.0 at minimum (because of RHEL-8)
but we use G_GNUC_NO_INLINE which was introduced in 2.58.0. While
we provide an implementation for older versions, where the macro
does not exists, it's a bit more tricky than that. Since we
define GLIB_VERSION_MAX_ALLOWED we would get a compile time error
when trying to use something too new, except for G_GNUC_NO_INLINE
which was intentionally not marked as
GLIB_AVAILABLE_MACRO_IN_2_58. But this is about to change with
glib-2.73.2 (which contains commit [1]).
At the same time, we can't just bump glib and thus we have to
provide an alternative implementation without the version
annotation.
1: https://gitlab.gnome.org/GNOME/glib/-/commit/a6f8fe071e44b0145619c21f3bfbc90c56ab805e
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'src/util/virinitctl.c')
0 files changed, 0 insertions, 0 deletions