From: Jules Maselbas <jmaselbas@zdiv.net>
To: musl@lists.openwall.com
Cc: Jules Maselbas <jmaselbas@zdiv.net>
Subject: [musl] [PATCH] prevent from redefining __STDC_UTF_{16,32}__ macros
Date: Thu, 25 Jan 2024 13:09:54 +0100 [thread overview]
Message-ID: <20240125120954.13578-1-jmaselbas@zdiv.net> (raw)
---
I encountered this "issue" trying to compile a program with the -isystem
option to override toolchain/installed musl headers with one from source.
include/stdc-predef.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/stdc-predef.h b/include/stdc-predef.h
index af1a2799..642bad2d 100644
--- a/include/stdc-predef.h
+++ b/include/stdc-predef.h
@@ -7,7 +7,12 @@
#define __STDC_IEC_559__ 1
#endif
+#if !defined(__STDC_UTF_16__)
#define __STDC_UTF_16__ 1
+#endif
+
+#if !defined(__STDC_UTF_32__)
#define __STDC_UTF_32__ 1
+#endif
#endif
--
2.43.0
next reply other threads:[~2024-01-25 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 12:09 Jules Maselbas [this message]
2024-01-25 14:07 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240125120954.13578-1-jmaselbas@zdiv.net \
--to=jmaselbas@zdiv.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).