From b02df7b23474a6c87c9b2488c80b08207a77c5cb Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Tue, 6 Feb 2024 16:34:38 +1300 Subject: [PATCH] gold: Deal with absence of on macOS Add code to provide fallback definitions of char16_t/char32_t on macOS. --- gold/output.cc | 6 ++++++ gold/stringpool.cc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gold/output.cc b/gold/output.cc index ead67f20..2dbaa2ee 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -29,7 +29,9 @@ #include #include #include +#if !defined(__APPLE__) #include +#endif #ifdef HAVE_SYS_MMAN_H #include diff --git a/gold/stringpool.cc b/gold/stringpool.cc index d8f38cfa..eca59bad 100644 --- a/gold/stringpool.cc +++ b/gold/stringpool.cc @@ -25,7 +25,9 @@ #include #include #include +#if !defined(__APPLE__) #include +#endif #include "output.h" #include "parameters.h" -- 2.44.0