gmacros: Add GCC < 5 fallback for __always_inline__

Commit 15cd0f0461 introduced a check
for the __always_inline__ attribute. However, we don't define a
fallback for GCC < 5.
This commit is contained in:
Alessandro Bono 2023-03-09 14:30:46 +01:00
parent 3bbd728868
commit 13b564d027

View File

@ -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)