Skip to content
Snippets Groups Projects
Commit ce50fa31 authored by Corey Farrell's avatar Corey Farrell
Browse files

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
........

Merged revisions 432055 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@432056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bb06603d
No related branches found
No related tags found
No related merge requests found
......@@ -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),
{
return OSAtomicAdd64(v, (int64_t *) p) - v;
})
#elif defined (__i386__) || defined(__x86_64__)
#ifdef sun
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),
{
return OSAtomicAdd64( -1, (int64_t *) p) == 0;
})
#else
AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment