lib/Support/Errno.cpp: Check strerror_s() with HAVE_DECL_STRERROR_S in config.h.*.
commit251566fecde9c0ed3600a3cca473f2cdde662d6e
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:18:48 +0000 (9 04:18 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 9 Feb 2011 04:18:48 +0000 (9 04:18 +0000)
tree8d1829f0069c79afc3a5e02cf97bd42e5dbd3163
parent2552e0bfc40c6e38227c8f197aeea38ee06bc79e
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
autoconf/configure.ac
cmake/config-ix.cmake
configure
include/llvm/Config/config.h.cmake
include/llvm/Config/config.h.in
lib/Support/Errno.cpp