llvm.org GIT mirror llvm / 08e712b
[Support] Fix StrError on Windows to actually return the error string... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167191 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 6 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5252 str = buffer;
5353 # endif
5454 #elif HAVE_DECL_STRERROR_S // "Windows Secure API"
55 if (errnum)
55 if (errnum) {
5656 strerror_s(buffer, MaxErrStrLen - 1, errnum);
57 str = buffer;
58 }
5759 #elif defined(HAVE_STRERROR)
5860 // Copy the thread un-safe result of strerror into
5961 // the buffer as fast as possible to minimize impact