mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gbitlock: use G_GNUC_CHECK_VERSION
Replace `__GLIBC__` with `G_GNUC_CHECK_VERSION`
This commit is contained in:
parent
28b18cab06
commit
6cc9899f3d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user