From 13b564d02739036edda3d025a4ab56691257cc51 Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Thu, 9 Mar 2023 14:30:46 +0100 Subject: [PATCH] gmacros: Add GCC < 5 fallback for __always_inline__ Commit 15cd0f04612c90292792c4d123ebe84bf4bf93a6 introduced a check for the __always_inline__ attribute. However, we don't define a fallback for GCC < 5. --- glib/gmacros.h | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/gmacros.h b/glib/gmacros.h index 6d90afd31..30dc03fdb 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -173,6 +173,7 @@ #define g_macro__has_attribute(x) g_macro__has_attribute_##x #define g_macro__has_attribute___alloc_size__ G_GNUC_CHECK_VERSION (4, 3) +#define g_macro__has_attribute___always_inline__ G_GNUC_CHECK_VERSION (2, 0) #define g_macro__has_attribute___const__ G_GNUC_CHECK_VERSION (2, 4) #define g_macro__has_attribute___deprecated__ G_GNUC_CHECK_VERSION (3, 1) #define g_macro__has_attribute___format__ G_GNUC_CHECK_VERSION (2, 4)