Fix improper defining of CV_XADD when using Intel C++

pull/13553/head
Lucas Towers 6 years ago
parent 71aee662bd
commit 9cc12ff0ac
  1. 2
      modules/core/include/opencv2/core/cvdef.h

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

Loading…
Cancel
Save