From 1615f193ebaff22e22baef5ec47a6c407caa857e Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 21 Feb 2013 15:32:50 +0000 Subject: [PATCH] [ASan] Declare CreateThread as extern "C" to fix the Windows build. llvm-svn: 175760 --- compiler-rt/lib/asan/asan_intercepted_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/asan_intercepted_functions.h b/compiler-rt/lib/asan/asan_intercepted_functions.h index ce2133f..7cfbede 100644 --- a/compiler-rt/lib/asan/asan_intercepted_functions.h +++ b/compiler-rt/lib/asan/asan_intercepted_functions.h @@ -81,10 +81,10 @@ using __sanitizer::uptr; // Windows threads. # if defined(_WIN32) +extern "C" { __declspec(dllimport) void* __stdcall CreateThread(void *sec, uptr st, void* start, void *arg, DWORD fl, DWORD *id); -extern "C" { int memcmp(const void *a1, const void *a2, uptr size); void memmove(void *to, const void *from, uptr size); -- 2.7.4