blob: c2585a84f055577bdc93e0671968a2b0b2680724 (
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
26
27
28
29
30
31
|
$NetBSD: patch-glib_gatomic.c,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.c.orig 2020-02-27 16:12:52.000000000 +0000
+++ glib/gatomic.c
@@ -94,8 +94,6 @@
* implement the atomic operations in a lock-free manner.
*/
-#if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
-
/**
* g_atomic_int_get:
* @atomic: a pointer to a #gint or #guint
@@ -658,14 +656,6 @@ gsize
return InterlockedXor (atomic, val);
#endif
}
-#else
-
-/* This error occurs when `meson configure` decided that we should be capable
- * of lock-free atomics but we find at compile-time that we are not.
- */
-#error G_ATOMIC_LOCK_FREE defined, but incapable of lock-free atomics.
-
-#endif /* defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) */
#else /* G_ATOMIC_LOCK_FREE */
|