[asterisk-commits] coreyfarrell: branch 13 r432055 - in /branches/13: ./ include/asterisk/lock.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 20 20:46:17 CST 2015
Author: coreyfarrell
Date: Fri Feb 20 20:46:15 2015
New Revision: 432055
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432055
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/
........
Merged revisions 432054 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/13/ (props changed)
branches/13/include/asterisk/lock.h
Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/13/include/asterisk/lock.h
URL: http://svnview.digium.com/svn/asterisk/branches/13/include/asterisk/lock.h?view=diff&rev=432055&r1=432054&r2=432055
==============================================================================
--- branches/13/include/asterisk/lock.h (original)
+++ branches/13/include/asterisk/lock.h Fri Feb 20 20:46:15 2015
@@ -695,6 +695,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),
@@ -741,6 +742,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