diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2012-12-11 12:23:00 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2012-12-11 12:23:00 +0000 |
commit | d923f2bf44ba4a839a39042ba661ff7ee931897a (patch) | |
tree | bc7b2027be33054f0afcb331d3fbd9867ea5754c /lib/asan/asan_allocator.h | |
parent | 4e773526d9f0c7040345468e51bef8f9b3079f45 (diff) |
Hopefully fix the Windows build (2)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_allocator.h')
-rw-r--r-- | lib/asan/asan_allocator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asan/asan_allocator.h b/lib/asan/asan_allocator.h index 0e59524e5..9a8b9e84f 100644 --- a/lib/asan/asan_allocator.h +++ b/lib/asan/asan_allocator.h @@ -205,12 +205,14 @@ void asan_mz_force_unlock(); // Log2 and RoundUpToPowerOfTwo should be inlined for performance. #if defined(_WIN32) && !defined(__clang__) +extern "C" { unsigned char _BitScanForward(unsigned long *index, unsigned long mask); unsigned char _BitScanReverse(unsigned long *index, unsigned long mask); #if defined(_WIN64) unsigned char _BitScanForward64(unsigned long *index, unsigned __int64 mask); unsigned char _BitScanReverse64(unsigned long *index, unsigned __int64 mask); #endif +} #endif static inline uptr Log2(uptr x) { |