[libcxx-commits] [libcxx] [libcxx] No _LIBCPP_ELAST needed for LLVM libc (PR #108739)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Sep 15 00:38:11 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

LLVM libc can handle out-of-range errno values.

---
Full diff: https://github.com/llvm/llvm-project/pull/108739.diff


1 Files Affected:

- (modified) libcxx/src/include/config_elast.h (+2) 


``````````diff
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__)

``````````

</details>


https://github.com/llvm/llvm-project/pull/108739


More information about the libcxx-commits mailing list