mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-06 19:09:14 +00:00
https://sourceware.org/pipermail/binutils/2024-August/136396.html Add the new version rebasing the patches we carry on top. Signed-off-by: Chris Packham <judge.packham@gmail.com>
36 lines
848 B
Diff
36 lines
848 B
Diff
From 5e16cd42ed6c0b626ee47601396517ddb8a6065f Mon Sep 17 00:00:00 2001
|
|
From: Bryan Hundven <bryanhundven@gmail.com>
|
|
Date: Tue, 6 Feb 2024 16:34:38 +1300
|
|
Subject: [PATCH 8/8] gold: Deal with absence of <uchar> on macOS
|
|
|
|
Add code to provide fallback definitions of char16_t/char32_t on macOS.
|
|
---
|
|
gold/output.cc | 2 ++
|
|
gold/stringpool.cc | 2 ++
|
|
2 files changed, 4 insertions(+)
|
|
|
|
--- a/gold/output.cc
|
|
+++ b/gold/output.cc
|
|
@@ -29,7 +29,9 @@
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
#include <algorithm>
|
|
+#if !defined(__APPLE__)
|
|
#include <uchar.h>
|
|
+#endif
|
|
|
|
#ifdef HAVE_SYS_MMAN_H
|
|
#include <sys/mman.h>
|
|
--- a/gold/stringpool.cc
|
|
+++ b/gold/stringpool.cc
|
|
@@ -25,7 +25,9 @@
|
|
#include <cstring>
|
|
#include <algorithm>
|
|
#include <vector>
|
|
+#if !defined(__APPLE__)
|
|
#include <uchar.h>
|
|
+#endif
|
|
|
|
#include "output.h"
|
|
#include "parameters.h"
|