Skip to content

Commit

Permalink
Merge pull request #12 from mati865/profiler_mingw
Browse files Browse the repository at this point in the history
Provide lprofGetHostName for all windows environments
  • Loading branch information
alexcrichton committed May 16, 2019
2 parents eb38a18 + 3bcbd5a commit e792248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/profile/InstrProfilingUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e792248

Please sign in to comment.