From 4d6795305bcbe3d335aae399bc04d51342987674 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Sun, 6 Apr 2025 12:00:15 -0400 Subject: [PATCH] Fix builds with macOS SDKs older than 10.13 --- libcxx/include/__cxx03/__mbstate_t.h | 1 + libcxx/include/__mbstate_t.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libcxx/include/__cxx03/__mbstate_t.h b/libcxx/include/__cxx03/__mbstate_t.h index 6c7cfaaa8fe5b..07a30ee881795 100644 --- a/libcxx/include/__cxx03/__mbstate_t.h +++ b/libcxx/include/__cxx03/__mbstate_t.h @@ -42,6 +42,7 @@ #elif __has_include() # include // works on most Unixes #elif __has_include() +# include # include // works on Darwin #elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include_next() # include_next // fall back to the C standard provider of mbstate_t diff --git a/libcxx/include/__mbstate_t.h b/libcxx/include/__mbstate_t.h index c23ea7113ca70..6a819dd34af72 100644 --- a/libcxx/include/__mbstate_t.h +++ b/libcxx/include/__mbstate_t.h @@ -42,6 +42,7 @@ #elif __has_include() # include // works on most Unixes #elif __has_include() +# include # include // works on Darwin #elif __has_include_next() # include_next // use the C standard provider of mbstate_t if present