We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422154d commit c585d38Copy full SHA for c585d38
modules/core/include/opencv2/core/operations.hpp
@@ -52,8 +52,8 @@
52
#ifdef __cplusplus
53
54
/////// exchange-add operation for atomic operations on reference counters ///////
55
-#if defined __INTEL_COMPILER && !(defined WIN32 || defined _WIN32) // atomic increment on the linux version of the Intel(tm) compiler
56
- #define CV_XADD(addr,delta) _InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(addr)), delta)
+#ifdef CV_XADD
+ // allow to use user-defined macro
57
#elif defined __GNUC__
58
59
#if defined __clang__ && __clang_major__ >= 3 && !defined __ANDROID__ && !defined __EMSCRIPTEN__ && !defined(__CUDACC__)
0 commit comments