blob: f7f7b3507d53e2cd629ef45e9b58ff1073efa139 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-glib_gatomic.h,v 1.2 2020/03/04 15:11:48 wiz Exp $
Ignore __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 as is already done
for android and linux. PR pkg/54298
--- glib/gatomic.h.orig 2020-02-27 16:12:52.000000000 +0000
+++ glib/gatomic.h
@@ -82,7 +82,7 @@ gint g_atomic_int_exc
G_END_DECLS
-#if defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
+#if defined(G_ATOMIC_LOCK_FREE)
/* We prefer the new C11-style atomic extension of GCC if available */
#if defined(__ATOMIC_SEQ_CST)
@@ -372,7 +372,7 @@ G_END_DECLS
#endif /* !defined(__ATOMIC_SEQ_CST) */
-#else /* defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) */
+#else /* defined(G_ATOMIC_LOCK_FREE) */
#define g_atomic_int_get(atomic) \
(g_atomic_int_get ((gint *) (atomic)))
|