[llvm-commits] [compiler-rt] r169856 - /compiler-rt/trunk/lib/asan/asan_allocator.h

Timur Iskhodzhanov timurrrr at google.com
Tue Dec 11 04:23:00 PST 2012


Author: timurrrr
Date: Tue Dec 11 06:23:00 2012
New Revision: 169856

URL: http://llvm.org/viewvc/llvm-project?rev=169856&view=rev
Log:
Hopefully fix the Windows build (2)

Modified:
    compiler-rt/trunk/lib/asan/asan_allocator.h

Modified: compiler-rt/trunk/lib/asan/asan_allocator.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_allocator.h?rev=169856&r1=169855&r2=169856&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.h (original)
+++ compiler-rt/trunk/lib/asan/asan_allocator.h Tue Dec 11 06:23:00 2012
@@ -205,12 +205,14 @@
 
 // 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) {





More information about the llvm-commits mailing list