compilation for windows

pull/2102/head
Anatoly Baksheev 11 years ago
parent 4a6c2ce378
commit c2dd7fd762
  1. 1
      modules/core/include/opencv2/core/cvdef.h

@ -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…
Cancel
Save