[glib: 1/4] gbitlock: use G_GNUC_CHECK_VERSION
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] gbitlock: use G_GNUC_CHECK_VERSION
- Date: Thu, 29 Apr 2021 12:48:51 +0000 (UTC)
commit 6cc9899f3d0a7495636669ec16a06b6da7bb7cbd
Author: Nishal Kulkarni <kulknishu gmail com>
Date: Thu Apr 29 17:38:59 2021 +0530
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 <glib/gmacros.h>
#include <glib/gmessages.h>
#include <glib/gatomic.h>
#include <glib/gslist.h>
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]