From 86ee1270e2aa216cbd873b00f69f71f666fe7405 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 24 Aug 2023 12:03:10 +1000 Subject: [PATCH] 3rdparty/cpuinfo: Fix build with clang-cl --- 3rdparty/cpuinfo/src/cpuinfo/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3rdparty/cpuinfo/src/cpuinfo/utils.h b/3rdparty/cpuinfo/src/cpuinfo/utils.h index 157baad9ab..d2aa731ebd 100644 --- a/3rdparty/cpuinfo/src/cpuinfo/utils.h +++ b/3rdparty/cpuinfo/src/cpuinfo/utils.h @@ -2,6 +2,10 @@ #include +#ifdef _MSC_VER +#include // _BitScanReverse +#endif + inline static uint32_t bit_length(uint32_t n) { const uint32_t n_minus_1 = n - 1;