summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qalgorithms.h
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2016-10-12 15:14:46 +0200
committerThiago Macieira <thiago.macieira@intel.com>2016-10-26 03:16:45 +0000
commit951b34453b575a314971a00c81e03a29082857b1 (patch)
tree1e8ed3cd6895c202c724456f10306a4a44da6e9d /src/corelib/tools/qalgorithms.h
parent6ec86513ddbc19cd988878c8431c47820f68a00e (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/qalgorithms.h')
-rw-r--r--src/corelib/tools/qalgorithms.h4
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")