From 951b34453b575a314971a00c81e03a29082857b1 Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Wed, 12 Oct 2016 15:14:46 +0200 Subject: 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 --- src/corelib/tools/qalgorithms.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/tools/qalgorithms.h') 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 +#if defined(Q_CC_MSVC) +#include +#endif + QT_BEGIN_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations") -- cgit v1.2.3