From 3bcbd5a631afaabcfe69a73ae2166878e08fc74f 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 llvm-svn: 353918 --- compiler-rt/lib/profile/InstrProfilingUtil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c index 083bf14a32604..9acb50514d3e2 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.c +++ b/compiler-rt/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);