From 9170d592ee1828211d65e5e4e7ad97abeea88c75 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 2 Jul 2009 12:09:50 +0000 Subject: [PATCH] Fix windows build, patch by Howard Su. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Errno.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp index f4e3a88d054..d046aba04dd 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. -- 2.34.1