mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
fixed #1855
This commit is contained in:
parent
37295d7b35
commit
da0080dd15
@ -52,7 +52,7 @@
|
||||
#ifdef __cplusplus
|
||||
|
||||
/////// exchange-add operation for atomic operations on reference counters ///////
|
||||
#ifdef __INTEL_COMPILER // atomic increment on the Intel(tm) compiler
|
||||
#if defined __INTEL_COMPILER && !(defined WIN32 || defined _WIN32) // atomic increment on the linux version of the Intel(tm) compiler
|
||||
#define CV_XADD(addr,delta) _InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(addr)), delta)
|
||||
#elif defined __GNUC__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user