projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88d5ce
)
Fix windows build, patch by Howard Su.
author
Duncan Sands
<baldrick@free.fr>
Thu, 2 Jul 2009 12:09:50 +0000
(12:09 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Thu, 2 Jul 2009 12:09:50 +0000
(12:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74697
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Errno.cpp
patch
|
blob
|
history
diff --git
a/lib/System/Errno.cpp
b/lib/System/Errno.cpp
index f4e3a88d054eaeeec6552652450ecbec71aceb8f..d046aba04dd5c2e48065e369eb3d39cf883b9dbd 100644
(file)
--- 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.