[asterisk-commits] coreyfarrell: branch 11 r432054 - /branches/11/include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 20 20:45:25 CST 2015
Author: coreyfarrell
Date: Fri Feb 20 20:45:17 2015
New Revision: 432054
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432054
Log:
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/
Modified:
branches/11/include/asterisk/lock.h
Modified: branches/11/include/asterisk/lock.h
URL: http://svnview.digium.com/svn/asterisk/branches/11/include/asterisk/lock.h?view=diff&rev=432054&r1=432053&r2=432054
==============================================================================
--- branches/11/include/asterisk/lock.h (original)
+++ branches/11/include/asterisk/lock.h Fri Feb 20 20:45:17 2015
@@ -577,6 +577,7 @@
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),
@@ -623,6 +624,7 @@
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),
{
More information about the asterisk-commits
mailing list