[compiler-rt] r175760 - [ASan] Declare CreateThread as extern "C" to fix the Windows build.
Alexander Potapenko
glider at google.com
Thu Feb 21 07:32:50 PST 2013
Author: glider
Date: Thu Feb 21 09:32:50 2013
New Revision: 175760
URL: http://llvm.org/viewvc/llvm-project?rev=175760&view=rev
Log:
[ASan] Declare CreateThread as extern "C" to fix the Windows build.
Modified:
compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
Modified: compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_intercepted_functions.h?rev=175760&r1=175759&r2=175760&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_intercepted_functions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_intercepted_functions.h Thu Feb 21 09:32:50 2013
@@ -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);
More information about the llvm-commits
mailing list