summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:48 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-09 04:18:48 +0000
commite29b0aca51e3568a92869daa70c4a0351750fd1e (patch)
tree8d1829f0069c79afc3a5e02cf97bd42e5dbd3163 /lib
parentfd289497a5e8f83c6d83f1eb7e30fdc52621bf15 (diff)
downloadllvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.gz
llvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.bz2
llvm-e29b0aca51e3568a92869daa70c4a0351750fd1e.tar.xz
lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in config.h.*.
AC_CHECK_FUNCS seeks a symbol only in libs. We should check the declaration in string.h. FIXME: I have never seen mingw(s) have strerror_s() (not _strerror_s()). FIXME: Autoconf/CMake may seek strerror_s() with the definition MINGW_HAS_SECURE_API in future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Errno.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Errno.cpp b/lib/Support/Errno.cpp
index 312d91e063..18c658173a 100644
--- a/lib/Support/Errno.cpp
+++ b/lib/Support/Errno.cpp
@@ -50,7 +50,7 @@ std::string StrError(int errnum) {
# else
strerror_r(errnum,buffer,MaxErrStrLen-1);
# endif
-#elif defined(HAVE_STRERROR_S) // Windows.
+#elif HAVE_DECL_STRERROR_S // "Windows Secure API"
if (errnum)
strerror_s(buffer, errnum);
#elif defined(HAVE_STRERROR)