mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Fix windows build, patch by Howard Su.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e88d5cee9d
commit
9170d592ee
@ -47,10 +47,10 @@ std::string StrError(int errnum) {
|
|||||||
# else
|
# else
|
||||||
strerror_r(errnum,buffer,MaxErrStrLen-1);
|
strerror_r(errnum,buffer,MaxErrStrLen-1);
|
||||||
# endif
|
# endif
|
||||||
#elif HAVE_STRERROR_S // Windows.
|
#elif defined(HAVE_STRERROR_S) // Windows.
|
||||||
if (errnum)
|
if (errnum)
|
||||||
strerror_s(buffer, errnum);
|
strerror_s(buffer, errnum);
|
||||||
#elif HAVE_STRERROR
|
#elif defined(HAVE_STRERROR)
|
||||||
// Copy the thread un-safe result of strerror into
|
// Copy the thread un-safe result of strerror into
|
||||||
// the buffer as fast as possible to minimize impact
|
// the buffer as fast as possible to minimize impact
|
||||||
// of collision of strerror in multiple threads.
|
// of collision of strerror in multiple threads.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user