diff --git a/include/onnxruntime/core/common/parse_string.h b/include/onnxruntime/core/common/parse_string.h index 355767619a2a6..6345b2a55490d 100644 --- a/include/onnxruntime/core/common/parse_string.h +++ b/include/onnxruntime/core/common/parse_string.h @@ -16,8 +16,8 @@ namespace onnxruntime { namespace detail { // Whether we will use std::from_chars() to parse to `T`. -#if defined(__ANDROID__) -// Note: As of Android NDK r27c, std::from_chars() doesn't support floating point types. +#if defined(_LIBCPP_VERSION) +// Note: Currently (e.g., in LLVM 19), libc++'s std::from_chars() doesn't support floating point types yet. template constexpr bool ParseWithFromChars = !std::is_same_v && std::is_integral_v; #else