From 6cc9899f3d0a7495636669ec16a06b6da7bb7cbd Mon Sep 17 00:00:00 2001 From: Nishal Kulkarni Date: Thu, 29 Apr 2021 17:38:59 +0530 Subject: [PATCH] gbitlock: use G_GNUC_CHECK_VERSION Replace `__GLIBC__` with `G_GNUC_CHECK_VERSION` --- glib/gbitlock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/gbitlock.c b/glib/gbitlock.c index 45fb50999..3aa4b4a43 100644 --- a/glib/gbitlock.c +++ b/glib/gbitlock.c @@ -22,6 +22,7 @@ #include "gbitlock.h" +#include #include #include #include @@ -179,7 +180,7 @@ g_futex_wake (const volatile gint *address) static volatile gint g_bit_lock_contended[CONTENTION_CLASSES]; #if (defined (i386) || defined (__amd64__)) - #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) + #if G_GNUC_CHECK_VERSION(4, 5) #define USE_ASM_GOTO 1 #endif #endif