Skip to content

Commit a4f83f6

Browse files
committed
Adding #include <intrin.h>
1 parent ae88f36 commit a4f83f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

headers/ewahutil.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
} while (false)
4242
#endif
4343

44+
#ifdef _MSC_VER
45+
#include <intrin.h>
46+
#endif
47+
4448
static inline uint32_t ctz64(uint64_t n) {
4549
#if defined(__GNUC__) && UINT_MAX >= UINT32_MAX && ULLONG_MAX >= UINT64_MAX
4650
return static_cast<uint32_t>(__builtin_ctzll(n));

0 commit comments

Comments
 (0)