2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-02 08:22:08 +00:00

Use #pragma intrinsic only with MSVC.

This commit is contained in:
Andrey Semashev
2014-10-01 13:30:37 +04:00
parent 5f6e9689a3
commit fe8f1dc4e0

View File

@@ -44,8 +44,10 @@
#if defined(_MSC_VER) && (defined(_M_AMD64) || (defined(_M_IX86) && defined(_M_IX86_FP) && _M_IX86_FP >= 2))
extern "C" void _mm_mfence(void);
#if defined(BOOST_MSVC)
#pragma intrinsic(_mm_mfence)
#endif
#endif
namespace boost {
namespace atomics {