From 1aafe6453f647225ea2eaca8a3164f09194a00b5 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 13 Feb 2019 07:27:05 +0000 Subject: [PATCH] Provide lprofGetHostName for all windows environments This function doesn't use anything MSVC specific but works fine for any _WIN32 target. Differential Revision: https://reviews.llvm.org/D58106 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353918 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/InstrProfilingUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index 083bf14a32..9acb50514d 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -81,7 +81,7 @@ void *lprofPtrFetchAdd(void **Mem, long ByteIncr) { #endif -#ifdef _MSC_VER +#ifdef _WIN32 COMPILER_RT_VISIBILITY int lprofGetHostName(char *Name, int Len) { WCHAR Buffer[COMPILER_RT_MAX_HOSTLEN]; DWORD BufferSize = sizeof(Buffer);