From 87eab90ea8a9e09f46b2ef417ee1b4bb935d34fe Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 27 Jan 2018 09:25:15 -0800 Subject: [PATCH] Fix missing intrinsic when included from C++/CLI (#457) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 38820e3cfaad..e8e50871d1c1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -151,7 +151,7 @@ // Some compilers masquerade as both MSVC and GCC-likes or 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 {