summaryrefslogtreecommitdiff
path: root/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c
blob: 0d4595cba092cdf79fb48c6fd9419b2608d3458a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-lib_BlocksRuntime_runtime.c,v 1.1 2018/06/02 19:11:01 joerg Exp $

--- lib/BlocksRuntime/runtime.c.orig	2018-05-07 16:23:23.420191743 +0000
+++ lib/BlocksRuntime/runtime.c
@@ -69,9 +69,9 @@ static __inline bool OSAtomicCompareAndS
 
 #elif defined(HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT) && defined(HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG)
 
-static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) {
-  return __sync_bool_compare_and_swap(dst, oldl, newl);
-}
+/*static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) {
+ *  return __sync_bool_compare_and_swap(dst, oldl, newl);
+ }*/
 
 static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) {
   return __sync_bool_compare_and_swap(dst, oldi, newi);