Fix the build

This commit is contained in:
Justine Tunney 2024-07-28 21:02:04 -07:00
parent 77d3a07ff2
commit c1a0b017e9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 161 additions and 61 deletions

View file

@ -100,7 +100,7 @@ inline errc __win_err_to_errc(int err) {
inline error_code capture_errno() {
_LIBCPP_ASSERT_INTERNAL(errno != 0, "Expected errno to be non-zero");
return error_code((int)__err_to_errc(errno), generic_category());
return error_code(__errc_to_err((errc)errno), generic_category());
}
#if defined(_LIBCPP_WIN32API)