diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-11-06 10:39:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 10:39:19 +0100 |
commit | c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c (patch) | |
tree | dbfd623fea1771448ff564d5fc4221db7fca2f84 /libcxx/src/system_error.cpp | |
parent | 5acc4a3dc0e2145d2bfef47f1543bb291c2b866a (diff) | |
download | llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.zip llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.gz llvm-c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c.tar.bz2 |
[libc++] Refactor the configuration macros to being always defined (#112094)
This is a follow-up to #89178. This updates the `<__config_site>`
macros.
Diffstat (limited to 'libcxx/src/system_error.cpp')
-rw-r--r-- | libcxx/src/system_error.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp index 4767293..53838c6 100644 --- a/libcxx/src/system_error.cpp +++ b/libcxx/src/system_error.cpp @@ -26,7 +26,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD namespace { -#if !defined(_LIBCPP_HAS_NO_THREADS) +#if _LIBCPP_HAS_THREADS // GLIBC also uses 1024 as the maximum buffer size internally. constexpr size_t strerror_buff_size = 1024; @@ -92,7 +92,7 @@ string do_strerror_r(int ev) { } # endif -#endif // !defined(_LIBCPP_HAS_NO_THREADS) +#endif // _LIBCPP_HAS_THREADS string make_error_str(const error_code& ec, string what_arg) { if (ec) { @@ -113,7 +113,7 @@ string make_error_str(const error_code& ec) { } // namespace string __do_message::message(int ev) const { -#if defined(_LIBCPP_HAS_NO_THREADS) +#if !_LIBCPP_HAS_THREADS return string(::strerror(ev)); #else return do_strerror_r(ev); |