All pastes #136691 Raw Edit

Someone

public text v1 · immutable
#136691 ·published 2006-08-17 21:00 UTC
rendered paste body
Index: include/asterisk/lock.h
===================================================================
--- include/asterisk/lock.h     (revision 40301)
+++ include/asterisk/lock.h     (working copy)
@@ -753,14 +753,15 @@
        return __sync_fetch_and_add(p, v);
 })
 #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 4)
-AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+static force_inline int ast_atomic_fetchadd_int(volatile int *p, int v)
 {
        return OSAtomicAdd32(v, (int32_t *) p);
-})
+}
 #elif defined(HAVE_OSX_ATOMICS) && (SIZEOF_INT == 8)
-AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
+static force_inline int ast_atomic_fetchadd_int(volatile int *p, int v)
 {
        return OSAtomicAdd64(v, (int64_t *) p);
+}
 #elif defined (__i386__)
 AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
 {