Fix issue #8278: "CV_XADD compile errors with Embarcadero C++ Builder 10.1"

pull/8296/head
ville-v 8 years ago committed by GitHub
parent 1de10f9f86
commit 0c1bcf354c
  1. 2
      modules/core/include/opencv2/core/cvdef.h

@ -438,7 +438,7 @@ Cv64suf;
#ifdef CV_XADD
// allow to use user-defined macro
#elif defined __GNUC__
#elif defined __GNUC__ || defined __clang__
# if defined __clang__ && __clang_major__ >= 3 && !defined __ANDROID__ && !defined __EMSCRIPTEN__ && !defined(__CUDACC__)
# ifdef __ATOMIC_ACQ_REL
# define CV_XADD(addr, delta) __c11_atomic_fetch_add((_Atomic(int)*)(addr), delta, __ATOMIC_ACQ_REL)

Loading…
Cancel
Save