[CRT/INTRIN] Use the gcc intrinsic equivalents when compiling with clang-cl and skip the ones that are already supported/built-in. CORE-11799 (#94)

This commit is contained in:
Amine Khaldi 2017-10-30 22:51:00 +01:00
parent 433d20f16e
commit dde1b98a78
2 changed files with 63 additions and 9 deletions

View file

@ -1012,7 +1012,7 @@ long _InterlockedIncrement(_Interlocked_operand_ long volatile * _Addend);
}
#endif /* __cplusplus */
#if defined(__GNUC__) && defined(_WIN32) // We can't use __MINGW32__ here
#if (defined(__GNUC__) || defined(__clang__)) && defined(_WIN32) // We can't use __MINGW32__ here
# include "mingw32/intrin.h"
#elif defined(_MSC_VER)
# include "msc/intrin.h"