compilation for windows
This commit is contained in:
parent
4a6c2ce378
commit
c2dd7fd762
@ -459,6 +459,7 @@ CV_INLINE int cvIsInf( double value )
|
||||
# endif
|
||||
# endif
|
||||
#elif defined _MSC_VER && !defined RC_INVOKED
|
||||
# include <intrin.h>
|
||||
# define CV_XADD(addr, delta) (int)_InterlockedExchangeAdd((long volatile*)addr, delta)
|
||||
#else
|
||||
CV_INLINE CV_XADD(int* addr, int delta) { int tmp = *addr; *addr += delta; return tmp; }
|
||||
|
Loading…
Reference in New Issue
Block a user