Fix clang build for Android (CV_XADD)

pull/702/head
Andrey Kamaev 12 years ago
parent deb7f4d474
commit aaf69c422e
  1. 2
      modules/core/include/opencv2/core/cvdef.h

@ -422,7 +422,7 @@ CV_INLINE int cvIsInf( double value )
# define CV_XADD(addr, delta) __atomic_fetch_add((_Atomic(int)*)(addr), delta, 4)
# endif
# else
# ifdef __ATOMIC_ACQ_REL
# if defined __ATOMIC_ACQ_REL && !defined __clang__
// version for gcc >= 4.7
# define CV_XADD(addr, delta) __atomic_fetch_add(addr, delta, __ATOMIC_ACQ_REL)
# else

Loading…
Cancel
Save