Skip to content

Commit e792248

Browse files
authored
Merge pull request #12 from mati865/profiler_mingw
Provide lprofGetHostName for all windows environments
2 parents eb38a18 + 3bcbd5a commit e792248

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)