_DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY Macro
Prevents declarations of interlocked intrinsics in <memory>.
_DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY
Remarks
The header <memory> uses interlocked intrinsics such as _InterlockedIncrement Intrinsic Functions to implement thread-safety in shared_ptr Class. Unfortunately, some other header files declare the interlocked intrinsics in a way that is incompatible with the declarations in <memory>.
If you have trouble compiling your program because of conflicting definitions of interlocked intrinsics, define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY, which prevents <memory> from declaring those functions.
Requirements
Header: <memory>
Namespace: std