[libc++] Amend error message for _LIBCPP_HAS_THREAD_API_EXTERNAL (#115774)

Noticed this while debugging a few things following
https://github.com/llvm/llvm-project/pull/112094. Amended error message
to reflect conditional check.
This commit is contained in:
Caslyn Tonelli 2024-11-11 13:58:34 -08:00 committed by GitHub
parent 54ae9e7bba
commit bbf2ad026e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -858,7 +858,7 @@ typedef __char32_t char32_t;
# endif
# if !_LIBCPP_HAS_THREADS && _LIBCPP_HAS_THREAD_API_EXTERNAL
# error _LIBCPP_HAS_THREAD_API_EXTERNAL may not be true when _LIBCPP_HAS_THREADS is true.
# error _LIBCPP_HAS_THREAD_API_EXTERNAL may only be true when _LIBCPP_HAS_THREADS is true.
# endif
# if !_LIBCPP_HAS_MONOTONIC_CLOCK && _LIBCPP_HAS_THREADS