diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-02 12:09:50 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-07-02 12:09:50 +0000 |
commit | 50e4cd66b2c7e8308fddfa87740c8ce5d6cc0508 (patch) | |
tree | d737d659597ed87e9eb8209f24be19a07ab1b422 | |
parent | a90942ea9e09576655ed4e0536d6ab9cba5da657 (diff) | |
download | external_llvm-50e4cd66b2c7e8308fddfa87740c8ce5d6cc0508.zip external_llvm-50e4cd66b2c7e8308fddfa87740c8ce5d6cc0508.tar.gz external_llvm-50e4cd66b2c7e8308fddfa87740c8ce5d6cc0508.tar.bz2 |
Fix windows build, patch by Howard Su.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74697 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Errno.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp index f4e3a88..d046aba 100644 --- a/lib/System/Errno.cpp +++ b/lib/System/Errno.cpp @@ -47,10 +47,10 @@ std::string StrError(int errnum) { # else strerror_r(errnum,buffer,MaxErrStrLen-1); # endif -#elif HAVE_STRERROR_S // Windows. +#elif defined(HAVE_STRERROR_S) // Windows. if (errnum) strerror_s(buffer, errnum); -#elif HAVE_STRERROR +#elif defined(HAVE_STRERROR) // Copy the thread un-safe result of strerror into // the buffer as fast as possible to minimize impact // of collision of strerror in multiple threads. |