diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-09 04:18:48 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-09 04:18:48 +0000 |
commit | 189111808efea7b33b3aed4b173103fd4cd92d65 (patch) | |
tree | a04f794496d8809d4d17f91b8abeed71f46e609e /llvm/lib/Support/Errno.cpp | |
parent | aeb4c0d8fbe82fbb63a169f85cb2730a93efaece (diff) | |
download | llvm-189111808efea7b33b3aed4b173103fd4cd92d65.zip llvm-189111808efea7b33b3aed4b173103fd4cd92d65.tar.gz llvm-189111808efea7b33b3aed4b173103fd4cd92d65.tar.bz2 |
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.
llvm-svn: 125172
Diffstat (limited to 'llvm/lib/Support/Errno.cpp')
-rw-r--r-- | llvm/lib/Support/Errno.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Errno.cpp b/llvm/lib/Support/Errno.cpp index 312d91e..18c6581 100644 --- a/llvm/lib/Support/Errno.cpp +++ b/llvm/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) |