[ASan] Declare CreateThread as extern "C" to fix the Windows build.

llvm-svn: 175760
This commit is contained in:
Alexander Potapenko 2013-02-21 15:32:50 +00:00
parent 3238dc0c61
commit 1615f193eb
1 changed files with 1 additions and 1 deletions

View File

@ -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);