Skip to content

Commit

Permalink
[libcxx] No _LIBCPP_ELAST needed for LLVM libc
Browse files Browse the repository at this point in the history
LLVM libc can handle out-of-range errno values.
  • Loading branch information
petrhosek committed Sep 15, 2024
1 parent 9fc789d commit 00f8bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcxx/src/include/config_elast.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 00f8bec

Please sign in to comment.