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 | f9cf4ffcc70ad7524d0b2cd9cb856df17e2056f4 (patch) | |
tree | 06d6d764f789d0715f8e4f500c4637b5d3911092 /llvm/lib | |
parent | 84c6cda2ef0050bd33fd855cbcd8b2a19df6de2b (diff) | |
download | bcm5719-llvm-f9cf4ffcc70ad7524d0b2cd9cb856df17e2056f4.tar.gz bcm5719-llvm-f9cf4ffcc70ad7524d0b2cd9cb856df17e2056f4.zip |
Fix windows build, patch by Howard Su.
llvm-svn: 74697
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/System/Errno.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Errno.cpp b/llvm/lib/System/Errno.cpp index f4e3a88d054..d046aba04dd 100644 --- a/llvm/lib/System/Errno.cpp +++ b/llvm/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. |