Skip to content

Commit

Permalink
Fix missing intrinsic when included from C++/CLI (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 27, 2018
1 parent 75005bb commit 87eab90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Expand Up @@ -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 <intrin.h> // _BitScanReverse, _BitScanReverse64

namespace fmt {
Expand Down

0 comments on commit 87eab90

Please sign in to comment.