From: Alexander Potapenko Date: Thu, 21 Feb 2013 15:32:50 +0000 (+0000) Subject: [ASan] Declare CreateThread as extern "C" to fix the Windows build. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1615f193ebaff22e22baef5ec47a6c407caa857e;p=platform%2Fupstream%2Fllvm.git [ASan] Declare CreateThread as extern "C" to fix the Windows build. llvm-svn: 175760 --- 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);