[libcxx-commits] [libcxx] 4f0187d - [libcxx] No _LIBCPP_ELAST needed for LLVM libc (#108739)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 19 22:17:15 PDT 2024
Author: Petr Hosek
Date: 2024-09-19T22:17:11-07:00
New Revision: 4f0187d1442273ac54ac11acbbd3b4e1c02008d8
URL: https://github.com/llvm/llvm-project/commit/4f0187d1442273ac54ac11acbbd3b4e1c02008d8
DIFF: https://github.com/llvm/llvm-project/commit/4f0187d1442273ac54ac11acbbd3b4e1c02008d8.diff
LOG: [libcxx] No _LIBCPP_ELAST needed for LLVM libc (#108739)
LLVM libc can handle out-of-range errno values.
Added:
Modified:
libcxx/src/include/config_elast.h
Removed:
################################################################################
diff --git a/libcxx/src/include/config_elast.h b/libcxx/src/include/config_elast.h
index 899e124ad261b2..158b93e20040dd 100644
--- a/libcxx/src/include/config_elast.h
+++ b/libcxx/src/include/config_elast.h
@@ -21,6 +21,8 @@
// where strerror/strerror_r can't handle out-of-range errno values.
#if defined(ELAST)
# define _LIBCPP_ELAST ELAST
+#elif defined(__LLVM_LIBC__)
+// No _LIBCPP_ELAST needed for LLVM libc
#elif defined(_NEWLIB_VERSION)
# define _LIBCPP_ELAST __ELASTERROR
#elif defined(__NuttX__)
More information about the libcxx-commits
mailing list