diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2016-10-12 15:14:46 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-10-26 03:16:45 +0000 |
commit | 951b34453b575a314971a00c81e03a29082857b1 (patch) | |
tree | 1e8ed3cd6895c202c724456f10306a4a44da6e9d /src/corelib/tools | |
parent | 6ec86513ddbc19cd988878c8431c47820f68a00e (diff) |
Include intrin.h header when using MSVC
Allows the usage of _BitScanForward, _BitScanReverse, __popcnt and
__popcnt16 functions.
Fixes part of the build with MSVC15.
Change-Id: I5ec37184209196ad19beddb4d6a36f9a9fd3b315
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qalgorithms.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qalgorithms.h b/src/corelib/tools/qalgorithms.h index 6e472e8b22..038f4149c3 100644 --- a/src/corelib/tools/qalgorithms.h +++ b/src/corelib/tools/qalgorithms.h @@ -42,6 +42,10 @@ #include <QtCore/qglobal.h> +#if defined(Q_CC_MSVC) +#include <intrin.h> +#endif + QT_BEGIN_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations") |