From a2596d685d78cbf1148990d7b7e21480241db339 Mon Sep 17 00:00:00 2001 From: Calum Robinson Date: Tue, 17 Jan 2017 15:12:26 +0000 Subject: [PATCH] Fix missing intrinsic when included from C++/CLI Managed C++ code doesn't have the _BitScanReverse* intrinsics, we must use the fallback code for count_digits etc. --- fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 58b416be..2f1c518d 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -289,7 +289,7 @@ typedef __int64 intmax_t; // otherwise support __builtin_clz and __builtin_clzll, so // only define FMT_BUILTIN_CLZ using the MSVC intrinsics // if the clz and clzll builtins are not available. -#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) +#if FMT_MSC_VER && !defined(FMT_BUILTIN_CLZLL) && !defined(_MANAGED) # include // _BitScanReverse, _BitScanReverse64 namespace fmt {