Commit 33a8c30b authored by sletz's avatar sletz
Browse files

jackd2-atomic-fix.patch applied.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3999 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 446c0824
......@@ -67,16 +67,17 @@ static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* ad
return ret;
}
#else
#endif
#if !defined(__i386__) && !defined(__x86_64__) && !defined(__PPC__)
#warning using builtin gcc (version > 4.1) atomic
static inline char CAS(volatile uint32_t value, uint32_t newvalue, volatile int32_t* addr)
static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr)
{
return __sync_bool_compare_and_swap (addr, value, newvalue);
return __sync_bool_compare_and_swap (&addr, value, newvalue);
}
#endif
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment