Skip to content

Commit 3bcbd5a

Browse files
mstorsjomati865
authored andcommitted
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
1 parent eb38a18 commit 3bcbd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/profile/InstrProfilingUtil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void *lprofPtrFetchAdd(void **Mem, long ByteIncr) {
8181

8282
#endif
8383

84-
#ifdef _MSC_VER
84+
#ifdef _WIN32
8585
COMPILER_RT_VISIBILITY int lprofGetHostName(char *Name, int Len) {
8686
WCHAR Buffer[COMPILER_RT_MAX_HOSTLEN];
8787
DWORD BufferSize = sizeof(Buffer);

0 commit comments

Comments
 (0)