mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
asterisk/lock.h: Fix syntax errors for non-gcc OSX with 64-bit integers.
Add a couple of missing closing brackets / parenthesis. ASTERISK-24814 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/4436/ ........ Merged revisions 432054 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432055 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -695,6 +695,7 @@ AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
|
|||||||
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
|
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
|
||||||
{
|
{
|
||||||
return OSAtomicAdd64(v, (int64_t *) p) - v;
|
return OSAtomicAdd64(v, (int64_t *) p) - v;
|
||||||
|
})
|
||||||
#elif defined (__i386__) || defined(__x86_64__)
|
#elif defined (__i386__) || defined(__x86_64__)
|
||||||
#ifdef sun
|
#ifdef sun
|
||||||
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
|
AST_INLINE_API(int ast_atomic_fetchadd_int(volatile int *p, int v),
|
||||||
@@ -741,6 +742,7 @@ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
|
|||||||
AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
|
AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
|
||||||
{
|
{
|
||||||
return OSAtomicAdd64( -1, (int64_t *) p) == 0;
|
return OSAtomicAdd64( -1, (int64_t *) p) == 0;
|
||||||
|
})
|
||||||
#else
|
#else
|
||||||
AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
|
AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user