Skip to content

Commit ce95d9c

Browse files
authored
fix error C3861: '_BitScanReverse': identifier not found (#3141)
1 parent ac5f5e5 commit ce95d9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/LightGBM/utils/common.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
#include <utility>
2727
#include <vector>
2828

29+
#ifdef _MSC_VER
30+
#include <intrin.h>
31+
#pragma intrinsic(_BitScanReverse)
32+
#endif
33+
2934
#if defined(_MSC_VER)
3035
#include <malloc.h>
3136
#elif MM_MALLOC

0 commit comments

Comments
 (0)